org.python.util

Class TemplateAntTask

public class TemplateAntTask extends MatchingTask

Template is an Ant task for generating new-style object definitions based on template files. These template files come in two flavors; *.expose and *.derived, both are supported by this task.

Version: 1.0

Author: Matt Small - msmall@activegrid.com

Method Summary
PathcreateSrc()
voidexecute()
voidsetDestdir(String in)
Specifies the destination directory; this should usually be the source tree, as the templates modify source files in-place.
voidsetMappingFile(String aMappingFile)
Specifies the mapping file, for template short name to Python class name.
voidsetPython(String aPE)
Specifies the Python interpreter.
voidsetScriptdir(String in)
Path to find scripts (gexpose.py & gderived.py).
voidsetSrcdir(Path srcDir)
Source paths.
voidsetVerbose(String in)
Verbose flag.

Method Detail

createSrc

public Path createSrc()

execute

public void execute()

setDestdir

public void setDestdir(String in)
Specifies the destination directory; this should usually be the source tree, as the templates modify source files in-place.

setMappingFile

public void setMappingFile(String aMappingFile)
Specifies the mapping file, for template short name to Python class name.

setPython

public void setPython(String aPE)
Specifies the Python interpreter.

setScriptdir

public void setScriptdir(String in)
Path to find scripts (gexpose.py & gderived.py).

setSrcdir

public void setSrcdir(Path srcDir)
Source paths.

setVerbose

public void setVerbose(String in)
Verbose flag.
Jython homepage