ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <>
Subject AW: ****SPAM**** how to use <first>?
Date Wed, 26 Nov 2008 15:00:21 GMT
Who creates this dir?
Who knows the name?

The best way is to pass the information on to your antfile.

J├╝rgen Knuplesch                   
-----Urspr├╝ngliche Nachricht-----
Von: ndario [] 
Gesendet: Mittwoch, 26. November 2008 15:54
Betreff: ****SPAM**** how to use <first>?


I want to copy a set of files to a directory which is dynamically generated.
I know only a part of name of that directory, it looks like this "tmp*abc":


I need to copy files to a directory which has latest creation date. I guess it would be possible
with <sort> and <first> elements but I have no idea how to use it? This example

  <copy todir="dest" flatten="true">
    <first count="2">
          <file file="src_dir/file1.txt"/>
          <file file="src_dir/file2.txt"/>
          <file file="src_dir/file3.txt"/>
          <url url=""/>

finds latest file and copies it to the destination, but I want the oposite.
I need to determine correct destination.

Could anybody give me a hint how to use <first>, please.

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message