I don't really care much about id, as I only need the fileset as a nested
element inside a task. The good question now is can I use

<sort><fileset>...</fileset> </sort>

wherever I would normally use

<fileset>...</fileset>

What about elements that have a nested element that inherits from fileset?
Like for instance the jmeter task, which takes a nested something inherited
from fileset to specify a set of test files?

Thanks for help so far anyways :)

Cheers,
Chris




2008/11/5 Rebhan, Gilbert <[EMAIL PROTECTED]>

>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2008 6:46 AM
> To: [email protected]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to