Ant Integration

For information about installing Ant please refer to the Ant installation documentation.

For information about installing iQgen for Ant, please take a look at the section called “Installing iQgen for Ant”.

For an example on how to use iQgen from Ant, please take a look at the build file in the directory ../samples/getting_started/tutorial_1. The most interesting task is generate-code:

<target name="generate-code" depends="prepare" if="generator_is_present">
   <generate jspDir="${basedir}/templates"
      xmiFile="${basedir}/model/crm.xml"
      outputDir="${gen.dir}"
      mainJsp="main.jsp"/>
</target>
or
<target name="generate-code" depends="prepare" if="generator_is_present">
   <generate transform="tutorial_1"/>
</target>                    

The generated code will be written to ./src. The tutorial also generates its own build.xml file, which compiles the generated classes and creates a Jar file.