Hi,
I am using ant for building my projects, This project needs more memory then default JVM size, So I have added following line of code in the build.xml
file.
<!-- setting up this value as project need this much memory to compile.-->
<property environment="env" />
<property name="env.ANT_OPTS" value="-Xms1024m -Xmx204888m" />
But above line of code does not seems to have any effect as I am still getting the heap size problem. So I have decided to use a batch
script for launching the build. The line of code in the given batch file is below
set ANT_OPTS=-Xms512m -Xmx778m
ant -f agora-build.xml
This batch script successfully launch and executes the ant script. But this is not what I am looking for. Is there a way exists, so that I can setup this argument in the ant script itself?
What should i do?
Thanks, VSD