Upgrade Velocity to 1.7 and integrate VelocityTools?

4 views
Skip to first unread message

Antonio García Domínguez

unread,
Feb 4, 2012, 5:21:25 AM2/4/12
to bpel...@googlegroups.com
Hi everyone,

I'm writing yet another template-based BPTS file, and this time I have to do some date arithmetic. Since XPath 1.0 can't do it and Velocity doesn't allow for creating new objects on the fly, I'm stuck. I could have added a Calendar object with the current date to the default BPELUnit template variables, but I don't think I should be coupling BPELUnit to my particular problem.

I've had a look around, and it seems that VelocityTools extends Velocity with several tools for handling XML documents, dates, URLs and other useful things:

http://velocity.apache.org/tools/releases/2.0/summary.html

We would be using only the generic tools (standalone usage):

http://velocity.apache.org/tools/releases/2.0/standalone.html

It also lets users extend it with new tools or configure them by adding an appropriate tools.xml file in the classpath, so we could extend BPELUnit's templating functionality from our tools, without having to change BPELUnit any further.

Do you think we could integrate VelocityTools 2.0 into BPELUnit, and upgrade Velocity to the latest stable release while we're at it?

Cheers,
Antonio

Antonio García Domínguez

unread,
Feb 5, 2012, 1:03:06 PM2/5/12
to bpel...@googlegroups.com
Hi again,

I've integrated Velocity Tools 2.0 (only the generic tools, and not the VelocityView/VelocityStruts components) into BPELUnit and pushed the changes to bluezio/master and bpelunit/master. I've added a small test using the ConverterTool, and everything works fine.

Comments and suggestions are welcome :-).

Cheers,
Antonio
Reply all
Reply to author
Forward
0 new messages