From 30ebea71bb2f2de810451d690a4c9c278456066c Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 16 Jul 2009 13:12:00 +0000 Subject: [PATCH] fix xmlproperty examples. PR 43583 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794666 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/xmlproperty.html | 26 +++---- .../antunit/taskdefs/xmlproperty-test.xml | 78 ++++++++++++++++++- 2 files changed, 90 insertions(+), 14 deletions(-) diff --git a/docs/manual/CoreTasks/xmlproperty.html b/docs/manual/CoreTasks/xmlproperty.html index 32b990e06..254d8d017 100644 --- a/docs/manual/CoreTasks/xmlproperty.html +++ b/docs/manual/CoreTasks/xmlproperty.html @@ -237,7 +237,7 @@ is equivalent to the following properties:
default loading (semanticAttributes=true)

This entry in a build file: -

   <xmlproperty file="somefile.xml"
+
   <xmlproperty file="somefile.xml" keepRoot="false"
                 semanticAttributes="true"/>
is equivalent to the following entries in a build file:
@@ -246,22 +246,22 @@ is equivalent to the following entries in a build file:
   <property name="build.classes" location="${build.folder}/classes" id="build.classes"/>
   <property name="build.reference" refid="build.classes"/>
 
-  <property name="run-time.jars" value="*.jar/>
+  <property name="run-time.jars" value="*.jar"/>
 
-  <classpath id="compile.classpath">
+  <path id="compile.classpath">
     <pathelement location="${build.classes}"/>
-  </classpath>
+  </path>
 
-  <classpath id="run-time.classpath">
+  <path id="run-time.classpath">
     <path refid="compile.classpath"/>
     <pathelement path="${run-time.jars}"/>
-  </classpath>
+  </path>
 
includeSemanticAttribute="true"

This entry in a build file:

   <xmlproperty file="somefile.xml"
-                semanticAttributes="true"
+                semanticAttributes="true" keepRoot="false"
                 includeSemanticAttribute="true"/>
 
is equivalent to the following entries in a build file: @@ -269,18 +269,18 @@ is equivalent to the following entries in a build file: <property name="version.value" value="0.0.1"/> <property name="build.folder" value="build"/> <property name="build.classes.location" location="${build.folder}/classes"/> - <property name="build.reference.refid" refid="build.location"/> + <property name="build.reference.refid" refid="build.classes"/> - <property name="run-time.jars" value="*.jar/> + <property name="run-time.jars" value="*.jar"/> - <classpath id="compile.classpath"> + <path id="compile.classpath"> <pathelement location="${build.classes}"/> - </classpath> + </path> - <classpath id="run-time.classpath"> + <path id="run-time.classpath"> <path refid="compile.classpath"/> <pathelement path="${run-time.jars}"/> - </classpath> + </path>
diff --git a/src/tests/antunit/taskdefs/xmlproperty-test.xml b/src/tests/antunit/taskdefs/xmlproperty-test.xml index ac3c9c8c9..5be04207e 100644 --- a/src/tests/antunit/taskdefs/xmlproperty-test.xml +++ b/src/tests/antunit/taskdefs/xmlproperty-test.xml @@ -15,8 +15,11 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + + + @@ -64,5 +67,78 @@ + + + + + + + + + + + + + + + + + *.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +