diff --git a/docs/manual/CoreTypes/resources.html b/docs/manual/CoreTypes/resources.html index b5f6bf478..f15bc2f90 100644 --- a/docs/manual/CoreTypes/resources.html +++ b/docs/manual/CoreTypes/resources.html @@ -675,7 +675,7 @@ platforms.
Assuming the namespace settings
rsel="antlib:org.apache.tools.ant.types.resources.selectors"
rcmp="antlib:org.apache.tools.ant.types.resources.comparators"
-
The following selects files a, b, c, and d:
+
<restrict> <fileset dir="src" includes="a,b,c,d,e,f,g" /> @@ -685,7 +685,39 @@ platforms. </control> <rcmp:name /> </rsel:compare> -</restrict>+</restrict> + +
Selects files a, b, c, and d.
++ <project rsel="antlib:org.apache.tools.ant.types.resources.selectors"> + <macrodef name="copyFromPath"> + <attribute name="todir"/> + <attribute name="refid"/> + <element name="nested-resource-selectors" optional="yes" implicit="true"/> + <sequential> + <mkdir dir="@{todir}" taskname="copyFromPath"/> + <copy todir="@{todir}" taskname="copyFromPath"> + <restrict> + <path refid="@{refid}"/> + <rsel:or> + <nested-resource-selectors/> + </rsel:or> + </restrict> + <flattenmapper/> + </copy> + </sequential> + </macrodef> + <copyFromPath refid="classpath" todir="todir"> + <rsel:name name="log4j.properties"/> + <rsel:name name="default.properties"/> + </copyFromPath> + </project> ++
Creates the todir directory and copies (if present) the + files log4j.properties and default.properties + from the Classpath (already used while compiling). +
+- <project rsel="antlib:org.apache.tools.ant.types.resources.selectors"> - <macrodef name="copyFromPath"> - <attribute name="todir"/> - <attribute name="refid"/> - <element name="nested-resource-selectors" optional="yes" implicit="true"/> - <sequential> - <mkdir dir="@{todir}" taskname="copyFromPath"/> - <copy todir="@{todir}" taskname="copyFromPath"> - <restrict> - <path refid="@{refid}"/> - <rsel:or> - <nested-resource-selectors/> - </rsel:or> - </restrict> - <flattenmapper/> - </copy> - </sequential> - </macrodef> - <copyFromPath refid="classpath" todir="todir"> - <rsel:name name="log4j.properties"/> - <rsel:name name="default.properties"/> - </copyFromPath> - </project> --
Creates the todir directory and copies (if present) the - files log4j.properties and default.properties - from the Classpath (already used while compiling). -
- -- <union id="A"> + <resources id="A"> <string value="a"/> <string value="b"/> - </union> - <union id="B"> + </resources> + <resources id="B"> <string value="b"/> <string value="c"/> - </union> + </resources> <union id="union"><resources refid="A"/><resources refid="B"/></union> <intersect id="intersect"><resources refid="A"/><resources refid="B"/></intersect> <difference id="difference"><resources refid="A"/><resources refid="B"/></difference>