Can Apache Ant be told to cache its XML files?

427 views Asked by At

My build performance measurements suggest that, since my ant build is structured as a multipass process with iteration over the projects at the top level, we're spending a surprisingly large chunk of our build time re-reading the project build scripts and all their includes (reloading these in every pass's ant/antcall invocations).

Is there a reasonable way to tell Ant to retain all the parsed XML in memory until we're done? Or do I need to look at restructuring to combine some of those passes, to eliminate this overhead manually?

FWIW, I'm using Ant 1.8 right now. If 1.9 adds a solution for this, that might be the argument I need to justify an upgrade.

1

There are 1 answers

1
Jayan On

It is not correct for ant to "remember" the xml it read. For example, should it remember the raw XML or evaluated expressions?

Consider running performance monitor and optimize tasks and and targets.