|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.MatchingTask org.apache.velocity.anakia.AnakiaTask
public class AnakiaTask
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.
Nested Class Summary | |
---|---|
class |
AnakiaTask.Context
A context implementation that loads all values from an XML file. |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
AnakiaTask()
Constructor creates the SAXBuilder. |
Method Summary | |
---|---|
AnakiaTask.Context |
createContext()
Create a new context. |
void |
execute()
Main body of the application |
void |
setBasedir(File dir)
Set the base directory. |
void |
setDestdir(File dir)
Set the destination directory into which the VSL result files should be copied to |
void |
setExtension(String extension)
Allow people to set the default output file extension |
void |
setLastModifiedCheck(String lastmod)
Turn on/off last modified checking. |
void |
setProjectFile(String projectAttribute)
Allow people to set the path to the project.xml file |
void |
setStyle(String style)
Allow people to set the path to the .vsl file |
void |
setTemplatePath(File templatePath)
Set the path to the templates. |
void |
setVelocityPropertiesFile(File velocityPropertiesFile)
Allow people to set the path to the velocity.properties file This file is found relative to the path where the JVM was run. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnakiaTask()
Method Detail |
---|
public void setBasedir(File dir)
dir
- public void setDestdir(File dir)
dir
- the name of the destination directorypublic void setExtension(String extension)
extension
- public void setStyle(String style)
style
- public void setProjectFile(String projectAttribute)
projectAttribute
- public void setTemplatePath(File templatePath)
templatePath
- public void setVelocityPropertiesFile(File velocityPropertiesFile)
velocityPropertiesFile
- public void setLastModifiedCheck(String lastmod)
lastmod
- public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public AnakiaTask.Context createContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |