public class AnakiaTask
extends org.apache.tools.ant.taskdefs.MatchingTask
You can find more documentation about this class on the Velocity Website.
| 限定符和类型 | 类和说明 |
|---|---|
class |
AnakiaTask.Context
A context implementation that loads all values from an XML file.
|
| 构造器和说明 |
|---|
AnakiaTask()
Constructor creates the SAXBuilder.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AnakiaTask.Context |
createContext()
Create a new context.
|
void |
execute()
Main body of the application
|
void |
setBasedir(java.io.File dir)
Set the base directory.
|
void |
setDestdir(java.io.File dir)
Set the destination directory into which the VSL result
files should be copied to
|
void |
setExtension(java.lang.String extension)
Allow people to set the default output file extension
|
void |
setLastModifiedCheck(java.lang.String lastmod)
Turn on/off last modified checking. by default, it is on.
|
void |
setProjectFile(java.lang.String projectAttribute)
Allow people to set the path to the project.xml file
|
void |
setStyle(java.lang.String style)
Allow people to set the path to the .vsl file
|
void |
setTemplatePath(java.io.File templatePath)
Set the path to the templates.
|
void |
setVelocityPropertiesFile(java.io.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.
|
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, XsetItemsgetDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setBasedir(java.io.File dir)
dir - public void setDestdir(java.io.File dir)
dir - the name of the destination directorypublic void setExtension(java.lang.String extension)
extension - public void setStyle(java.lang.String style)
style - public void setProjectFile(java.lang.String projectAttribute)
projectAttribute - public void setTemplatePath(java.io.File templatePath)
templatePath - public void setVelocityPropertiesFile(java.io.File velocityPropertiesFile)
velocityPropertiesFile - public void setLastModifiedCheck(java.lang.String lastmod)
lastmod - public void execute()
throws org.apache.tools.ant.BuildException
execute 在类中 org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic AnakiaTask.Context createContext()