ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: Ordering classpath
Date Tue, 07 Aug 2001 13:57:16 GMT
Mikko Kurki-Suonio wrote:
> On Tue, 7 Aug 2001, Stephane Bailliez wrote:
> > No. it is dependent on the order returned by the underlying file system I
> > believe.
> So I've noticed.

It is possible to sort lists in Java.  It might be advantageous to support an
attribute for filesets and patternsets called "order".  It would look like this:

<fileset dir="${lib.dir}" order="alphabet"/>
<fileset dir="${lib.dir}" order="filesystem"/> <!-- (default) -->
<fileset dir="${lib.dir}" order="alphabet" reverse="true"/>
<fileset dir="${lib.dir}" order="filesystem" reverse="true"/>

or something similar.  Not all filesystems are naturally in alphabetical order,
so it adds an element of predictability accross development environments.  Alternatively,
you can specify a magic value or command line parameter that specifies a class
to perform Sorting for all filesets.

View raw message