You can also use NVelocity variables within the XML templates. For details on the syntax, refer to the Apache Velocity user-guide at http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html.

The NVelocity engine is automatically invoked, if you supply a data file using the -d, --data parameter. The data-file is a simple CSV file with the names of the properties in the first line followed by additional lines of property-values. DirCreator will re-apply the variables on each line to the template and process each line.

Example:
DirCreator -d input.csv -t nvelocity.xml

Last edited Dec 4, 2011 at 11:15 AM by uTILLIty, version 4

Comments

No comments yet.