From 7a806d447f83a787a2bb82aa6c94559f11cf1ce6 Mon Sep 17 00:00:00 2001
From: Jan Materne
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>