Ant Tasks Provided by JET

JET provides several ant tasks to faciliate the compilation of JET templates and execution of JET transformations in an Eclipse headless environment. These can be used with buildfiles that are set to build within the same JRE as the workspace.

jet.compile

This task wraps the JET compiler JET2Compiler. Typical usage is:

<!-- Compile the JET templates in project my.jet.plugin -->
<jet.compile project="my.jet.plugin" destdir="jet2java">
    <srcdir dir="." includes="**/*.jet"/>
</jet.compile>
    

jet.transform

This task wraps the method JET2Platform.runTransformationOnResource(). Typical usage is:

<jet.transform transformid="my.transform.id" resource="myProject/myfile.ext"/>