You can (or I might if I ever get time) write a custom ResourceComparator for use with the sort collection.
-Matt --- João Augusto Charnet <[EMAIL PROTECTED]> wrote: > Ok.... > I've downloaded a nightly build of ant, to see how > the sort tag works. > It still doesn't give me the ordering I need. > \---01_Vdir1 > | 01_file1.sql > | > +---00_Vdir2 > | 00_file2.sql > | 01_file3.sql > | > \---01_Vdir3 > | 01_file4.sql > | 02_file5.sql > | > \---01_dir4 > 01_file6.sql > 02_file7.sql > 03_file8.sql > > That's my directory structure. > If I do a dir /s *.sql from the root dir, I get the > files in the > following order : > > 01_file1.sql > 00_file2.sql > 01_file3.sql > 01_file4.sql > 02_file5.sql > 01_file6.sql > 02_file7.sql > 03_file8.sql > > Which is exaclty what I'm looking for. > When I use the sort tag, it's sorting by the file > name, so it gives me > the following order: > 00_file2.sql > 01_file3.sql > 01_file1.sql > 01_file6.sql > 02_file7.sql > 03_file8.sql > 01_file4.sql > 02_file5.sql > > Is there any atribute I can set in the sort tag so > that it returns the > file as the dir /s command ? > > Thanks a lot > > John. > > > Matt Benson wrote: > > >--- João Augusto Charnet <[EMAIL PROTECTED]> > >wrote: > > > > > > > >>Is there any work around I can do to achieve some > >>kind of ordering until > >>1.7 comes out? > >> > >> > > > >You could subclass fileset to order things. > > > > > > > >>Any idea on when 1.7 is coming out ? > >> > >> > > > >Nothing concrete, hopefully by the end of the year > at > >the latest. > > > >-Matt > > > > > > > > > >__________________________________ > >Yahoo! Mail - PC Magazine Editors' Choice 2005 > >http://mail.yahoo.com > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > -- > > <http://www.sfw.com.br>Softway & Softcomex > > > > João Augusto Charnet > Computer Engineer - R&D Team > > Phone/Fax: 55 19 3739-9261 > E-mail: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > R. Conceicao, 233 - Cj, 609 - Centro > 13010-050 - Campinas - SP - Brazil > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]