What is it?
- Gpp supports general file preprocessing based on the
Groovy Template Engine
and Ant by providing alternatives to the
<javac>. See the manual
for a complete description.
A Quick Example
anywhere you would use Ant's
<copy> task to preprocess your
files using the Groovy Template
<gppcopy> supports all
<copy>'s parameters and nested
- Access Ant's project properties
within your templates by invoking
<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" />
Gpp is essentially a Groovy port of
VPP, which was originally based on the
Velocity template engine.
Download and Installation
Get the latest and greatest release of Gpp from http://sourceforge.net/projects/groovytools
Assuming that you have already installed and configured Ant correctly, you may deploy Gpp by simply executing ant from the location where you installed Gpp.
Alternatively, you may also copy the jar files located in the lib subdirectory to your Ant installation ($ANT_HOME/lib).
Documentation and Examples
- See the manual for installation, examples, and deatiled explanations.
- See build.xml
for an quick example of Gpp usage in an ant build file.
- See HelloWorld.html.gpp for an example
- Please use the forums for assistance.
This software is licensed under LGPL, the terms of which you may find here.