<xmlproperty>
The <xmlproperty> task gives you the ability to load properties from an XML file. Conversion is simple. The element <project><build>src</build></project> is equivalent to project.build=src. With element attributes, the translation is dependent on the collapseattributes attribute. If true, element attributes are treated as nested elements. Hence, <project build="src"> is equivalent to the previous examples. If false, the same example would result in the project(build) property being set to src.
Table 4.87 displays the list of <xmlproperty> attributes.
Attributes | Description |
---|---|
Required | |
file | The XML formatted file. |
Optional | |
collapseattributes | If true, element attributes are treated as nested ... |
Get Ant Developer’s Handbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.