[ 1717919 ] Out of memory when running Run_build.bat

This commit is contained in:
Heng Sin Low 2007-05-12 22:49:47 +00:00
parent 040dfab8fc
commit daed345d25
2 changed files with 5 additions and 5 deletions

View File

@ -12,13 +12,13 @@
@SET ANT_CLASSPATH=%CLASSPATH%;..\tools\lib\ant.jar;..\tools\lib\ant-launcher.jar;..\tools\lib\ant-swing.jar;..\tools\lib\ant-commons-net.jar;..\tools\lib\commons-net-1.4.0.jar
@SET ANT_CLASSPATH=%ANT_CLASSPATH%;"%JAVA_HOME%\lib\tools.jar"
@SET ANT_OPTS="-Xms512m -Xmx512m"
@SET ANT_OPTS=-Xms512m -Xmx512m
@echo Cleanup ...
@"%JAVA_HOME%\bin\java" -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main clean
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main clean
@echo Building ...
@"%JAVA_HOME%\bin\java" -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
@IF ERRORLEVEL 1 goto ERROR
@Echo Done ...

View File

@ -24,10 +24,10 @@ fi
export ANT_CLASSPATH=$CLASSPATH:../tools/lib/ant.jar:../tools/lib/ant-launcher.jar:../tools/lib/ant-swing.jar:../tools/lib/ant-commons-net.jar:../tools/lib/commons-net.jar:$JAVA_HOME/lib/tools.jar
echo Cleanup ...
$JAVA_HOME/bin/java -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main clean
$JAVA_HOME/bin/java -Xmx512m -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main clean
echo Building ...
$JAVA_HOME/bin/java -Xmx500m -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
$JAVA_HOME/bin/java -Xmx512m -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
echo Done ...