I finally made it!!!
It took lot of tries and errors, someone may find this usefull:
<pathconvert property="lastDir">
<first>
<sort>
<dirset id="deployPattern" dir="${temp.dir}">
<include name="tmp*abc" />
</dirset>
<reverse
xmlns="antlib:org.apache.tools.ant.types.resources.comparators">
<date />
</reverse>
</sort>
</first>
</pathconvert>
<!--
<echo message="${lastDir}" />
-->
<copy todir="${lastDir}"
verbose="true"
includeEmptyDirs="false">
<fileset dir="${src.dir}" includes="**/*.txt" />
</copy>
--
View this message in context:
http://www.nabble.com/how-to-use-%3Cfirst%3E--tp20702429p20717561.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]