diff --git a/docs/manual/CoreTasks/copy.html b/docs/manual/CoreTasks/copy.html index fe4b76c32..acd8f7189 100644 --- a/docs/manual/CoreTasks/copy.html +++ b/docs/manual/CoreTasks/copy.html @@ -248,16 +248,16 @@ destination directory, flattening the directory structure.
Copies the two newest resources into a destination directory.
- <typedef name="date" classname="org.apache.tools.ant.types.resources.comparators.Date"/> - <copy todir="${to.dir}" flatten="true"> - <first count="2"> + <typedef name="date" classname="org.apache.tools.ant.types.resources.comparators.Date"/> + <copy todir="dest" flatten="true"> + <first count="2"> <sort> - <date/> + <date xmlns="antlib:org.apache.tools.ant.types.resources.comparators"/> <resources> - <file file="${from.dir}/file1.txt"/> - <file file="${from.dir}/file2.txt"/> - <file file="${from.dir}/file3.txt"/> - <url url="http://ant.apache.org/index.html"/> + <file file="src_dir/file1.txt"/> + <file file="src_dir/file2.txt"/> + <file file="src_dir/file3.txt"/> + <url url="http://ant.apache.org/index.html"/> </resources> </sort> </first>