Fix [ 1883092 ] Problem redeploying modified customization or patches.jar

This commit is contained in:
Carlos Ruiz 2008-01-30 23:46:23 +00:00
parent deaf41c152
commit 45508244f3
1 changed files with 10 additions and 6 deletions

View File

@ -33,6 +33,7 @@
<!-- create the time stamp and environment -->
<tstamp />
<available file="${envFile}" property="envFileExists" />
<available file="lib/AdempiereOriginal.jar" type="file" property="adempiereOriginal.exists"/>
<fail message="**** RUN_setup was not successful - please re-run ****" unless="envFileExists" />
<property file="${envFile}" />
<filter filtersfile="${envFile}" />
@ -118,8 +119,11 @@
</target>
<target name="backupAdempiereOriginal" unless="adempiereOriginal.exists">
<copy file="lib/Adempiere.jar" tofile="lib/AdempiereOriginal.jar" overwrite="yes" />
</target>
<!-- rebuild Adempiere.jar to include possible customization and patches -->
<target name="setupALib" depends="setupInit">
<target name="setupALib" depends="setupInit, backupAdempiereOriginal">
<jar jarfile="lib/Adempiere1.jar" index="yes" duplicate="preserve">
<!-- pack patches.jar and customization.jar into Adempiere.jar -->
<zipfileset src="lib/customization.jar" >
@ -136,7 +140,7 @@
<zipgroupfileset dir="packages" includes="**/lib/*.jar">
<patternset refid="manifest.exclude"/>
</zipgroupfileset>
<zipfileset src="lib/Adempiere.jar" >
<zipfileset src="lib/AdempiereOriginal.jar" >
<patternset refid="manifest.exclude"/>
</zipfileset>
<indexjars>