Skip to main content

Version: 23.10

gen-vo

The gen-vo task generates Groovy value object source files from form seed XML files.

Task Attributes

All attributes are optional unless otherwise indicated.

AttributeDescription
srcString
Required. The seed XML file.
packageNameString
Required. The package name to use in generated source.
dirString
Required. The directory to write generated source files to.
targetXPathString
Required. The XPath to the root of the seed XML, from where to begin generating value object classes.

TM Security

There are no security requirements associated with this task.

Example

The example ant task below generates Groovy value object source files from form seed XML files.

<gen-vo src="src/forms/homeloan/formdata.xml"
packageName="com.avoka.vo"
dir="src/generated/vo/"
targetXPath="//Applicant" />

Example Ant log output:

gen-vo:
[gen-vo] Generated VO: C:\Development\SDK\Eclipse\getting-started-eclipse\src\com\avoka\vo\Address.groovy
[gen-vo] Generated VO: C:\Development\SDK\Eclipse\getting-started-eclipse\src\com\avoka\vo\Applicant.groovy
BUILD SUCCESSFUL
Total time: 11 seconds