extension/posterita/webui/RUN_build.bat - error when java class path contains spaces

This commit is contained in:
teo_sarca 2008-02-15 12:46:54 +00:00
parent 0a605ae9c4
commit 960e63a275
1 changed files with 4 additions and 3 deletions

View File

@ -10,15 +10,16 @@
@Rem Set ant classpath
@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_CLASSPATH=%ANT_CLASSPATH%;%JAVA_HOME%\lib\tools.jar
@SET ANT_OPTS=-Xms128m -Xmx512m
echo %ANT_CLASSPATH%
@echo Cleanup ...
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -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" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger war
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath "%ANT_CLASSPATH%" -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger war
@IF ERRORLEVEL 1 goto ERROR
@Echo Done ...