|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.howardism.ant.FreeMarkerPlugin
This plugin to the WebTemplate Ant task interface the FreeMarker engine.
See www.FreeMarker.org for details and documentation for how the templates should be written.
WebTemplate| Constructor Summary | |
FreeMarkerPlugin()
|
|
| Method Summary | |
void |
convert(java.io.File srcParent,
java.io.File destFile,
java.lang.String template,
java.util.Properties attributes)
Converts a single file using the template engine. |
void |
setParent(org.apache.tools.ant.Task parent)
Allows the WebTemplate task to pass the plugin a reference to the Parent (the caller) so that it can send it log messages. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FreeMarkerPlugin()
| Method Detail |
public void convert(java.io.File srcParent,
java.io.File destFile,
java.lang.String template,
java.util.Properties attributes)
throws org.apache.tools.ant.BuildException
The parameters include the source data file and the template as well as the destination file where the resulting converted file will be written by this method.
convert in interface WebTemplatePluginsrcParent - name of the input file's parent for locating the template file.destFile - name of the destination file.template - name of the template fileattributes - A java.util.Properties file that contains the data and content
org.apache.tools.ant.BuildExceptionpublic void setParent(org.apache.tools.ant.Task parent)
WebTemplatePlugin
setParent in interface WebTemplatePluginparent -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||