| org.apache.velocity.anakia.AnakiaTask
AnakiaTask | public class AnakiaTask extends MatchingTask (Code) | | The purpose of this Ant Task is to allow you to use
Velocity as an XML transformation tool like XSLT is.
So, instead of using XSLT, you will be able to use this
class instead to do your transformations. It works very
similar in concept to Ant's <style> task.
You can find more documentation about this class on the
Velocity
Website.
author: Jon S. Stevens author: Attila Szegedi version: $Id: AnakiaTask.java,v 1.2 2005/11/18 09:24:36 klaas Exp $ |
Constructor Summary | |
public | AnakiaTask() Constructor creates the SAXBuilder. |
AnakiaTask | public AnakiaTask()(Code) | | Constructor creates the SAXBuilder.
|
setBasedir | public void setBasedir(File dir)(Code) | | Set the base directory.
|
setDestdir | public void setDestdir(File dir)(Code) | | Set the destination directory into which the VSL result
files should be copied to
Parameters: dirName - the name of the destination directory |
setExtension | public void setExtension(String extension)(Code) | | Allow people to set the default output file extension
|
setLastModifiedCheck | public void setLastModifiedCheck(String lastmod)(Code) | | Turn on/off last modified checking. by default, it is on.
|
setProjectFile | public void setProjectFile(String projectAttribute)(Code) | | Allow people to set the path to the project.xml file
|
setStyle | public void setStyle(String style)(Code) | | Allow people to set the path to the .vsl file
|
setTemplatePath | public void setTemplatePath(File templatePath)(Code) | | Set the path to the templates.
The way it works is this:
If you have a Velocity.properties file defined, this method
will override whatever is set in the
Velocity.properties file. This allows one to not have to define
a Velocity.properties file, therefore using Velocity's defaults
only.
|
setVelocityPropertiesFile | public void setVelocityPropertiesFile(File velocityPropertiesFile)(Code) | | Allow people to set the path to the velocity.properties file
This file is found relative to the path where the JVM was run.
For example, if build.sh was executed in the ./build directory,
then the path would be relative to this directory.
This is optional based on the setting of setTemplatePath().
|
|
|