ANT HolderGenerator Task  Locate

Overview  Locate

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]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 NameTask Class
HolderGeneratorcom.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>

Attributes of the HolderGenerator ANT Task  Locate

Attribute NameDescriptionRequiredCommand-line Option
classnameSets the full class name to be generated.No--class-name
dirSets the output directory where the holder will be stored.No--output-dir
forceOverwrites 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
holderTypeType of holder to generate. Type can be either 'out' or 'inout'. Default is 'inout'.No--type
valueTypeSpecifies the held value type. This attribute requires the full class name.Yes-