|
@@ -248,16 +248,16 @@ destination directory, flattening the directory structure.</b></p> |
|
|
|
|
|
|
|
|
<p><b>Copies the two newest resources into a destination directory.</b></p> |
|
|
<p><b>Copies the two newest resources into a destination directory.</b></p> |
|
|
<pre> |
|
|
<pre> |
|
|
<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> |
|
|
<sort> |
|
|
<date/> |
|
|
|
|
|
|
|
|
<date xmlns="antlib:org.apache.tools.ant.types.resources.comparators"/> |
|
|
<resources> |
|
|
<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> |
|
|
</resources> |
|
|
</sort> |
|
|
</sort> |
|
|
</first> |
|
|
</first> |
|
|