diff --git a/docs/manual/CoreTasks/xmlproperty.html b/docs/manual/CoreTasks/xmlproperty.html new file mode 100644 index 000000000..c26bdab2a --- /dev/null +++ b/docs/manual/CoreTasks/xmlproperty.html @@ -0,0 +1,93 @@ + + +XmlProperty Task + + + + + +

XmlProperty

+

Description

+

+Loads property values from a valid xml file. +

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
fileThe XML file to parse.Yes
prefixThe prefix to prepend to each propertyNo
keepRootIf false, it doesn't include the xml root tag as a first + value in the property name.No, default is true.
validateIf true, it enables validation.No, default is false.
collapseAttributesIf true, it treats attributes as nested elements.No, default is false.
+ + +

Examples

+
   <xmlproperty file="somefile.xml" />
+ +

Load contents of somefile.xml as Ant properties.

+ +
 
+   <root-tag myattr="true">
+    <inner-tag someattr="val">Text</inner-tag>
+    <a2><a3><a4>false</a4></a3></a2>
+   </root-tag>
+
+ +

This is an example xml file.

+ +
   root-tag(myattr)=true
+   root-tag.inner-tag=Text
+   root-tag.inner-tag(someattr)=val
+   root-tag.a2.a3.a4=false
+
+ +

These are the properties loaded by this task from the previous example file.

+ +
   <xmlproperty file="somefile.xml" collapseAttributes="true" />
+ +

Load contents of somefile.xml as Ant properties collapsing attributes as nodes.

+ +
   root-tag.myattr=true
+   root-tag.inner-tag=Text
+   root-tag.inner-tag.someatt=val
+   root-tag.a2.a3.a4=false
+
+ +

These are the properties loaded by this task from the previous example file, with + attribute collapsing true.

+ +
+ +

Copyright © 2002 Apache Software Foundation. All rights +Reserved.

+ + + + diff --git a/docs/manual/coretasklist.html b/docs/manual/coretasklist.html index fa7a63f38..aa8c41a0f 100644 --- a/docs/manual/coretasklist.html +++ b/docs/manual/coretasklist.html @@ -83,6 +83,7 @@ Uptodate
Waitfor
War
+XmlProperty
Xslt/Style
Zip
diff --git a/docs/manual/credits.html b/docs/manual/credits.html index 2e68623f7..a49422e0f 100644 --- a/docs/manual/credits.html +++ b/docs/manual/credits.html @@ -14,6 +14,7 @@