* Improve incremental install build

This commit is contained in:
Heng Sin Low 2007-01-12 13:51:48 +00:00
parent be0d7bb93a
commit 39313a373b
3 changed files with 40 additions and 4 deletions

View File

@ -6,10 +6,11 @@
@Echo Stop Apps Server (waiting)
@START %ADEMPIERE_HOME%\utils\RUN_Server2Stop.bat
@Sleep 5
@Rem Wait 5 second
@PING 1.1.1.1 -n 1 -w 5000 > NUL
@echo Building ...
@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main complete
@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main update
@Echo ErrorLevel = %ERRORLEVEL%
@IF NOT ERRORLEVEL 0 GOTO BUILDOK

View File

@ -19,7 +19,7 @@ $ADEMPIERE_HOME/utils/RUN_Server2Stop.sh
sleep 5
echo Building ...
$JAVA_HOME/bin/java -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main complete
$JAVA_HOME/bin/java -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main update
ls $ADEMPIERE_INSTALL

View File

@ -71,6 +71,23 @@
<antcall target="runSetupNonWin"></antcall>
</target>
<!-- ================================================ -->
<!-- Adempiere Local Update -->
<!-- ================================================ -->
<target name="updateDeploy" depends="" description="Environment dependent">
<echo message="=========== Update Adempiere"/>
<copy todir="${env.ADEMPIERE_INSTALL}">
<fileset dir="install/build" includes="Adempiere_*"/>
</copy>
<!-- Unzip Install File -->
<unzip src="install/build/Adempiere_${env.ADEMPIERE_VERSION_FILE}.zip"
dest="${env.ADEMPIERE_ROOT}"
overwrite="yes"/>
<!-- Run Setup -->
<antcall target="runUpdateWin"></antcall>
<antcall target="runUpdateNonWin"></antcall>
</target>
<target name="runSetupInit">
<condition property="isWindows">
<os family="windows" />
@ -89,11 +106,29 @@
</exec>
</target>
<target name="runUpdateWin" depends="runSetupInit" if="isWindows" >
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_update.bat"
spawn="false" resolveexecutable="true">
</exec>
</target>
<target name="runUpdateNonWin" depends="runSetupInit" unless="isWindows" >
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_update.sh"
spawn="false" resolveexecutable="true">
</exec>
</target>
<!-- ================================================ -->
<!-- complere -->
<!-- complete -->
<!-- ================================================ -->
<target name="complete" depends="build, install">
</target>
<!-- ================================================ -->
<!-- update -->
<!-- ================================================ -->
<target name="update" depends="build, updateDeploy">
</target>
<!-- ================================================ -->
<!-- Transfer Install -->