2006-11-17 10:15:04 +07:00
|
|
|
@Title Build Adempiere Clean
|
|
|
|
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_build.bat,v 1.22 2005/09/08 21:56:11 jjanke Exp $
|
|
|
|
|
2007-03-04 16:25:32 +07:00
|
|
|
@Rem Check java home
|
|
|
|
@IF NOT EXIST "%JAVA_HOME%\bin" ECHO "** JAVA_HOME NOT found"
|
|
|
|
@SET PATH=%JAVA_HOME%\bin;%PATH%
|
|
|
|
|
|
|
|
@Rem Check jdk
|
|
|
|
@IF NOT EXIST "%JAVA_HOME%\lib\tools.jar" ECHO "** Need Full Java SDK **"
|
|
|
|
|
|
|
|
@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"
|
2006-11-17 10:15:04 +07:00
|
|
|
|
2007-06-21 22:53:04 +07:00
|
|
|
@SET ANT_OPTS=-Xms128m -Xmx512m
|
2007-05-09 18:08:52 +07:00
|
|
|
|
2006-11-17 10:15:04 +07:00
|
|
|
@echo Cleanup ...
|
2007-06-21 22:55:39 +07:00
|
|
|
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main clean
|
2006-11-17 10:15:04 +07:00
|
|
|
|
|
|
|
@echo Building ...
|
2007-05-13 05:49:47 +07:00
|
|
|
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
|
2006-11-17 10:15:04 +07:00
|
|
|
@IF ERRORLEVEL 1 goto ERROR
|
|
|
|
|
|
|
|
@Echo Done ...
|
2007-01-15 01:47:53 +07:00
|
|
|
@Pause
|
2006-11-17 10:15:04 +07:00
|
|
|
@exit
|
|
|
|
|
|
|
|
:ERROR
|
|
|
|
@Color fc
|
|
|
|
|
|
|
|
@Pause
|