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

Path
createSrc()
void
execute()
void
setDestdir(String in)
Specifies the destination directory; this should usually be the source tree, as the templates modify source files in-place.
void
setMappingFile(String aMappingFile)
Specifies the mapping file, for template short name to Python class name.
void
setPython(String aPE)
Specifies the Python interpreter.
void
setScriptdir(String in)
Path to find scripts (gexpose.py & gderived.py).
void
setSrcdir(Path srcDir)
Source paths.
void
setVerbose(String in)
Verbose flag.

Method Details

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