|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.velocity.texen.ant.TexenTask
An ant task for generating output by using Velocity
Field Summary | |
protected Configuration |
contextProperties
These are properties that are fed into the initial context from a properties file. |
protected java.lang.String |
controlTemplate
This is the control template that governs the output. |
protected java.lang.String |
outputDirectory
This is where texen will place all the output that is a product of the generation process. |
protected java.lang.String |
outputFile
This is the file where the generated text will be placed. |
protected java.lang.String |
templatePath
This is where Velocity will look for templates using the file template loader. |
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType, wrapper |
Constructor Summary | |
TexenTask()
|
Method Summary | |
void |
execute()
Execute the input script with WM |
Configuration |
getContextProperties()
Set the context properties that will be fed into the initial context be the generating process starts. |
java.lang.String |
getControlTemplate()
Get the control template for the generating process. |
java.lang.String |
getOutputDirectory()
Get the output directory. |
java.lang.String |
getOutputFile()
Get the output file for the generation process. |
java.lang.String |
getTemplatePath()
Get the path where Velocity will look for templates using the file template loader. |
Context |
initControlContext()
|
protected void |
populateInitialContext(Context context)
Place some useful object in the initial context. |
void |
setContextProperties(java.io.File file)
Set the context properties that will be fed into the initial context be the generating process starts. |
void |
setControlTemplate(java.lang.String controlTemplate)
Get the control template for the generating process. |
void |
setOutputDirectory(java.io.File outputDirectory)
Set the output directory. |
void |
setOutputFile(java.lang.String outputFile)
Set the output file for the generation process. |
void |
setTemplatePath(java.io.File templatePath)
Set the path where Velocity will look for templates using the file template loader. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setProject, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.String controlTemplate
protected java.lang.String templatePath
protected java.lang.String outputDirectory
protected java.lang.String outputFile
protected Configuration contextProperties
Constructor Detail |
public TexenTask()
Method Detail |
public void setControlTemplate(java.lang.String controlTemplate)
public java.lang.String getControlTemplate()
public void setTemplatePath(java.io.File templatePath)
public java.lang.String getTemplatePath()
public void setOutputDirectory(java.io.File outputDirectory)
public java.lang.String getOutputDirectory()
public void setOutputFile(java.lang.String outputFile)
public java.lang.String getOutputFile()
public void setContextProperties(java.io.File file)
public Configuration getContextProperties()
public Context initControlContext()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
protected void populateInitialContext(Context context)
Context
- initial context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |