* added jar target that only rebuild Adempiere distribution jar file.
* added build script that take ant target from command line parameter.
This commit is contained in:
parent
dfa108cdc5
commit
bff1cb7823
|
@ -0,0 +1,48 @@
|
|||
@Title Build Adempiere Clean
|
||||
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_build.bat,v 1.22 2005/09/08 21:56:11 jjanke Exp $
|
||||
|
||||
@Rem Check java home
|
||||
@IF NOT EXIST "%JAVA_HOME%\bin" goto javahome
|
||||
@SET PATH="%JAVA_HOME%\bin";%PATH%
|
||||
|
||||
@Rem Check jdk
|
||||
@IF NOT EXIST "%JAVA_HOME%\lib\tools.jar" goto jdk
|
||||
|
||||
@if (%1) == () goto usage
|
||||
|
||||
@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_OPTS=-Xms128m -Xmx512m
|
||||
|
||||
@echo Building ...
|
||||
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main %1
|
||||
@IF ERRORLEVEL 1 goto ERROR
|
||||
|
||||
@Echo Done ...
|
||||
@Pause
|
||||
@exit
|
||||
|
||||
:usage
|
||||
@echo Usage: %0 target
|
||||
@echo Examples: %0 complete
|
||||
@pause
|
||||
@exit
|
||||
|
||||
:javahome
|
||||
@echo JAVA_HOME is not set.
|
||||
@echo You may not be able to build Adempiere
|
||||
@echo Set JAVA_HOME to the directory of your local JDK.
|
||||
@pause
|
||||
@exit
|
||||
|
||||
:jdk
|
||||
@echo "** Need full Java SDK **"
|
||||
@pause
|
||||
@exit
|
||||
|
||||
:ERROR
|
||||
@Color fc
|
||||
|
||||
@Pause
|
|
@ -0,0 +1,41 @@
|
|||
# This script rebuilds Adempiere
|
||||
# Ported from Windows script Marek Mosiewicz<marek.mosiewicz@jotel.com.pl>
|
||||
# If you have difficulties, compare it with the Windows version.
|
||||
#
|
||||
# $Header: /cvsroot/adempiere/utils_dev/myDevEnvTemplate.sh,v 1.6 2003/04/27 12:34:16 marekmosiewicz Exp $
|
||||
|
||||
#check java home
|
||||
if [ $JAVA_HOME ]; then
|
||||
export PATH=$JAVA_HOME/bin:$PATH
|
||||
else
|
||||
echo JAVA_HOME is not set.
|
||||
echo You may not be able to build Adempiere
|
||||
echo Set JAVA_HOME to the directory of your local JDK.
|
||||
exit
|
||||
fi
|
||||
|
||||
# check jdk
|
||||
if [ ! -f $JAVA_HOME/lib/tools.jar ] ; then
|
||||
echo "** Need full Java SDK **"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "Usage: $0 target"
|
||||
echo "Example: $0 complete"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#classpath
|
||||
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
|
||||
|
||||
export ANT_OPTS="-Xms128m -Xmx512m"
|
||||
|
||||
echo Building ...
|
||||
$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main $1
|
||||
|
||||
echo Done ...
|
||||
|
||||
exit 0
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<!-- Create the time stamp -->
|
||||
<tstamp/>
|
||||
</target>
|
||||
<target name="build" depends="init">
|
||||
<target name="jar" depends="init">
|
||||
<ant inheritAll="false" dir="tools"/>
|
||||
<ant inheritAll="false" dir="looks"/>
|
||||
<ant inheritAll="false" dir="base"/>
|
||||
|
@ -30,8 +30,9 @@
|
|||
<ant inheritAll="false" dir="webCM"/>
|
||||
<ant inheritAll="false" dir="sqlj"/>
|
||||
<ant inheritAll="false" dir="posterita"/>
|
||||
</target>
|
||||
<target name="build" depends="jar">
|
||||
<ant inheritAll="false" dir="install"/>
|
||||
|
||||
</target>
|
||||
<target name="clean">
|
||||
<ant inheritAll="false" dir="tools" target="clean"/>
|
||||
|
|
Loading…
Reference in New Issue