ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantinos Karadamoglou" <kka...@googlemail.com>
Subject OutOfMemoryError problem
Date Mon, 03 Apr 2006 15:53:10 GMT
Hello all,

I created an ant build file which contains only one target. This is an
aggregation of other targets located to other ant build files. The
reason of creating the the build file is because I cannot modify the
other build files.

The target is simple like that:

< some properties/>

<target name="build-all">
		<ant antfile="configure.xml" target="clean" />
		<ant antfile="configure.xml" target="configure" />
		<ant antfile="build.xml" target="clean" />
		<ant antfile="build.xml" target="clean-app1" />
		<ant antfile="build.xml" target="build-app1" />
		<ant antfile="build.xml" target="build" />
                <ant antfile="database.xml" target="gen" />
</target>

The problem that I have is that ant goes out of memory :

  ([javac] The system is out of resources.
  [javac] Consult the following stack trace for details.
  [javac] java.lang.OutOfMemoryError: Java heap space)

 when it tries to compile a huge set of classes at the 5th target.

Do you know how I can increase the memory of ant without modifying the
existing build files? I tried to set -Xmx400m in the command line but
it does not seem to work.

Thank you in advance, kostas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message