The Torque Ant tasks provide the Ant integration of the Torque generator.

The only task this plugin offers currently is the generator task, which starts the Torque generator. It has to be defined as follows in the buildfile before it can be used:


where ant-classpath points to a path which contains all jars from the binary Torque ant tasks distribution.

A basic configuration for using pre-defined templates would be

      <option key="${option-key}" value="${option-value}"/>

The documentation of the templates should give you to the values for ${templates-config-package} and the necessary/possible options to set. Set ${source-dir} to the directory where the source files for the generation are located. The templates jar must also be available in the ant-classpath path.

See the generator task documentation for the available configuration parameters.

See the ORM tutorial for a complete build file example.