ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aubie au <>
Subject Problem using ant, subant for Big Projects
Date Thu, 03 Nov 2005 23:54:03 GMT
This might be a common problem you might have seen.
My project structure is like this.


In common-targets.xml, I have my own taskdef like this
<taskdef name="customizer"
	<classpath refid="build.classpath"/>

Each subN/build.xml has something like this
<target name="build">

In main/build.xml, I call the build targets of all
subN using ant task(I tried subant task also).
The problem is, when I run all subN from
main/build.xml, ant creates a separate classloader
(AntClassLoader2) each time i call <customizer> task.
This is never GCed throught the execution of main
project although the particular subn is done, finally
running out of memory.
If i execute 10 subN build targets from
main/build.xml, atleast 10 to 15 AntClassLoaders are

I cannot refer to the common-targets.xml in
main/build.xml, as i want flexibility to run the
targets from main/build.xml or subN/build.xml

Is there any solution or kind of structure i can i 
use to get around this problem.

I appreciate any quick response.



Start your day with Yahoo! - Make it your home page!

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

View raw message