From 693b2580f85fa1c32fb9e58df2ff7f6460726ab0 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 12 Jan 2007 13:53:44 +0000 Subject: [PATCH] * Improve incremental install build --- install/Adempiere/RUN_update.bat | 20 ++++++ install/Adempiere/RUN_update.sh | 21 +++++++ install/Adempiere/build.xml | 103 +++++++++++++++++++++++-------- install/build.xml | 6 +- 4 files changed, 121 insertions(+), 29 deletions(-) create mode 100644 install/Adempiere/RUN_update.bat create mode 100644 install/Adempiere/RUN_update.sh diff --git a/install/Adempiere/RUN_update.bat b/install/Adempiere/RUN_update.bat new file mode 100644 index 0000000000..a9113d3a78 --- /dev/null +++ b/install/Adempiere/RUN_update.bat @@ -0,0 +1,20 @@ +@Title Install Adempiere Server +@Rem $Header: /cvsroot/adempiere/install/Adempiere/RUN_setup.bat,v 1.19 2005/09/08 21:54:12 jjanke Exp $ +@Echo off + + +@if not "%JAVA_HOME%" == "" goto JAVA_HOME_OK +@Set JAVA=java +@Echo JAVA_HOME is not set. +@Echo You may not be able to start the required Setup window !! +@Echo Set JAVA_HOME to the directory of your local 1.5 JDK. +@Echo If you experience problems, run utils/WinEnv.js +@Echo Example: cscript utils\WinEnv.js C:\Adempiere "C:\Program Files\Java\jdk1.5.0_04" +goto START + +:JAVA_HOME_OK +@Set JAVA=%JAVA_HOME%\bin\java + +:START +@"%JAVA%" -classpath lib\CInstall.jar; -DADEMPIERE_HOME=%ADEMPIERE_HOME% -Dant.home="." org.apache.tools.ant.launch.Launcher update +@pause \ No newline at end of file diff --git a/install/Adempiere/RUN_update.sh b/install/Adempiere/RUN_update.sh new file mode 100644 index 0000000000..e3b06fdce7 --- /dev/null +++ b/install/Adempiere/RUN_update.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# +echo Install Adempiere Server +# $Header: /cvsroot/adempiere/install/Adempiere/RUN_setup.sh,v 1.19 2005/09/08 21:54:12 jjanke Exp $ + +if [ $JAVA_HOME ]; then + JAVA=$JAVA_HOME/bin/java + KEYTOOL=$JAVA_HOME/bin/keytool +else + JAVA=java + KEYTOOL=keytool + echo JAVA_HOME is not set. + echo You may not be able to start the Setup + echo Set JAVA_HOME to the directory of your local JDK. +fi + +#echo =================================== +#echo Update Adempiere Server Environment +#echo =================================== +CP=lib/CInstall.jar:lib/Adempiere.jar:lib/CCTools.jar:lib/oracle.jar:lib/derby.jar:lib/fyracle.jar:lib/jboss.jar:lib/postgresql.jar: +$JAVA -classpath $CP -DADEMPIERE_HOME=$ADEMPIERE_HOME -Dant.home="." org.apache.tools.ant.launch.Launcher update diff --git a/install/Adempiere/build.xml b/install/Adempiere/build.xml index abda2770fd..d69259cbeb 100644 --- a/install/Adempiere/build.xml +++ b/install/Adempiere/build.xml @@ -113,6 +113,8 @@ + + @@ -131,6 +133,12 @@ + + + + + @@ -178,20 +186,6 @@ - - - - - - - - - - - @@ -236,19 +230,30 @@ + + + + - + + + + - + + + - @@ -277,14 +282,23 @@ + + + + + + + + + + + - - - - - - + @@ -308,11 +322,34 @@ + + + + + + + + + + + + + + + + + + + + + - @@ -386,6 +423,14 @@ + + + + + + + @@ -394,7 +439,13 @@ - + + + + + + diff --git a/install/build.xml b/install/build.xml index fb2bc1ff19..bd2e22fc79 100644 --- a/install/build.xml +++ b/install/build.xml @@ -190,10 +190,10 @@ - + - - + +