ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Order of files inside a fileset
Date Wed, 05 Nov 2008 08:16:14 GMT

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Wednesday, November 05, 2008 6:46 AM
To: user@ant.apache.org
Subject: AW: Order of files inside a fileset

><sort>
>  <fileset dir="your/dir" id="foobar" />
></sort>
>
><echo>Sorted${line.separator}${toString:foobar}</echo>

/*
Your "id" is on on the unsorted <fileset> not the <sort>ed one.
*/

Oops, the fileset seemed to be ordered, so i thought it
would be sufficient that way.


so i need to go with pathconvert =

<pathconvert property="sorted" pathsep="${line.separator}" setonempty="false">
  <sort>
    <fileset dir="y:/copyto"/>
  </sort>
</pathconvert>

<echo>Sorted =${line.separator}${sorted}</echo>


Is there a way to give an id to a fileset after sorting ?

Regards,
Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message