This might be a common problem you might have seen.
My project structure is like this.

main/
    build.xml
    config/common-targets.xml
    sub1/build.xml
    ....... 
    subN/build.xml

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

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

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
created.

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.

thanks,
aubie


           



                
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to