ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien LF <>
Subject Re: Performance of fileset containing a large number of files
Date Thu, 18 Aug 2011 10:12:11 GMT
> 2011/8/18 Stefan Bodewig <>:
> Depends on which version of Ant you use.  Unless it is 1.8.2 upgrading
> could help as we've improved scanning perfromance with almost every
> release.

I have some environments stuck with Java 1.3 so i planned to use Ant 1.7.1.
I gave Ant 1.8.2 a try (I should have tried that from the start
obviously, sorry) and the performance gain was tremendous as the task
when from 42 minutes to 9 minutes.

> Another thing to look at is the way you describe your include/exclude
> patterns, if there are any, that is.  Patterns that exclude
> whole trees from the root like foo/bar/** can be used to improve
> performance significantly as Ant can skip the whole tree (which it
> didn't do properly before 1.8.2 BTW), for example.
> If there are no patterns at all (default excludes?) or they cannot be
> used to shortcut walking the directory tree (**/*.foo) than I don't have
> any other idea what you could do.

I don't use any include/exclude patterns so what I could do is make a
wrapper script to set the Java path to a newer version in order to be
able to use ant 1.8.1, but some of my tasks call our app which
requires Java 1.3.
I'll look into separating the tasks into targets called by the wrapper.

Thanks a lot,

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

View raw message