| authors : | Tony CHEMIT |
|---|---|
| contact : | chemit@codelutin.com |
Ant can't manage dependencies downloading. You will have to download Eugene (with it's ant task) and all it's dependencies.
An archive is available here (ant-eugene-task-2.x.x-deps) : http://www.nuiton.org/projects/eugene/files
Here is an example of the Ant task.
<!-- Eugene ant task (classpath must contains templates) -->
<taskdef name="generator" classname="org.nuiton.eugene.GeneratorTask"
classpath="${compile.classpath}" />
<target name="eugene" description="generate">
<eugene srcdir="${modelDir}" destdir="${targetgen}"
resolver="org.nuiton.exemple.ResourceResolver"
templates="org.nuiton.example.JavaBeanGenerator"
properties="defaultPackage=org.nuiton,fullPackagePath=org.nuiton,extraPackages=org.nuiton" />
</target>
In this example, a generation-template will be applied to all files.
A sample build.xml file is available here : build.xml