The HolderGenerator ANT task is for launching the Holder Generator command-line tool in Apache ANT. HolderGenerator creates a holder class. A holder class generally is used to hold on to output parameter values. More details on this tool are given in Holder Generator.
![]() | Note |
---|---|
Examples You can find usage examples of ANT tasks in WASP_HOME/src/example/tools/ant and in the build.xml files in Demos. See also Example 221. |
Task Name | Task Class |
---|---|
HolderGenerator | com.idoox.wasp.tools.ant.HolderGeneratorTask |
Example 221. HolderGenerator ANT Task
<?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="main" name="test"> <taskdef classname="com.idoox.wasp.tools.ant.HolderGeneratorTask" name="holderGenerator"/> <target name="main"> <holderGenerator className="testHolder" dir="../test" valueType="test.TestClass"/> </target> </project>
Attribute Name | Description | Required | Command-line Option |
---|---|---|---|
classname | Sets the full class name to be generated. | No | --class-name |
dir | Sets the output directory where the holder will be stored. | No | --output-dir |
force | Overwrites existing file, when a file with same path as the file being generated exists already. This prevents File already exists-type errors. (=true/false) | No | --force |
holderType | Type of holder to generate. Type can be either 'out' or 'inout'. Default is 'inout'. | No | --type |
valueType | Specifies the held value type. This attribute requires the full class name. | Yes | - |