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.
Attribute | Description |
---|---|
src | String Required. The seed XML file. |
packageName | String Required. The package name to use in generated source. |
dir | String Required. The directory to write generated source files to. |
targetXPath | String 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