org.apache.velocity.anakia
public class AnakiaTask extends MatchingTask
You can find more documentation about this class on the Velocity Website.
Version: $Id: AnakiaTask.java,v 1.34.4.1 2004/03/03 23:22:04 geirm Exp $
Field Summary | |
---|---|
File | baseDir the base directory |
SAXBuilder | builderSAXBuilder instance to use |
File | destDir the destination directory |
String | extension the default output extension is .html |
boolean | lastModifiedCheck check the last modified date on files. defaults to true |
String | projectAttribute the projectFile= attribute |
File | projectFile the File for the project.xml file |
long | projectFileLastModified last modified of the project file if it exists |
String | style the style= attribute |
File | styleFile the File to the style file |
long | styleSheetLastModified last modified of the style sheet |
String | templatePath the template path |
VelocityEngine | ve the VelocityEngine instance to use |
File | velocityPropertiesFile the file to get the velocity properties file |
Constructor Summary | |
---|---|
AnakiaTask()
Constructor creates the SAXBuilder. |
Method Summary | |
---|---|
void | ensureDirectoryFor(File targetFile)
create directories as needed |
void | execute()
Main body of the application |
String | getRelativePath(String file)
Hacky method to figure out the relative path
that we are currently in. |
void | process(File baseDir, String xmlFile, File destDir, Document projectDocument)
Process an XML file using Velocity |
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. by default, it is on. |
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.
|
SAXBuilder
instance to useParameters: dirName the name of the destination directory