<copy>
and <javac>
. See the manual
for a complete description.Use <gppcopy>
anywhere you would use
Ant's
regular <copy>
task to preprocess your
files using the Groovy Template
Engine.<gppcopy>
supports all
of <copy>
's parameters and nested
parameters.
<target name="gpp">
<typedef resource="groovtytools/ant/gpp/typedef.properties" />
<taskdef resource="groovtytools/ant/gpp/taskdef.properties" />
<gppcopy todir="output" overwrite="true">
<fileset dir="src" includes="*.html.gpp" />
<mapper type="glob" from="*.html.gpp" to="*.html" />
</gppcopy>
</target>