* simplify server deployment for smaller deployment size and faster startup
This commit is contained in:
parent
ce53ae3338
commit
e77acd64db
|
@ -110,6 +110,30 @@
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- rebuild Adempiere.jar to include possible customization and patches -->
|
||||||
|
<target name="setupALib" depends="setupInit">
|
||||||
|
<mkdir dir="buildALib" />
|
||||||
|
<unjar src="lib/Adempiere.jar" dest="buildALib" />
|
||||||
|
<unjar src="lib/patches.jar" dest="buildALib" />
|
||||||
|
<unjar src="lib/customization.jar" dest="buildALib" />
|
||||||
|
<jar jarfile="lib/Adempiere.jar" index="yes">
|
||||||
|
<fileset dir="buildALib" />
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Specification-Title" value="Adempiere"/>
|
||||||
|
<attribute name="Specification-Version" value="${env.ADEMPIERE_VERSION}"/>
|
||||||
|
<attribute name="Specification-Vendor" value="ADempiere"/>
|
||||||
|
<attribute name="Implementation-Title" value="Adempiere ${env.ADEMPIERE_VERSION}"/>
|
||||||
|
<attribute name="Implementation-Version" value="${env.ADEMPIERE_VERSION} ${DSTAMP}-${TSTAMP}"/>
|
||||||
|
<attribute name="Implementation-Vendor" value="${env.ADEMPIERE_VENDOR}"/>
|
||||||
|
<attribute name="Implementation-URL" value="http://www.adempiere.com"/>
|
||||||
|
<attribute name="Main-Class" value="org.compiere.Adempiere"/>
|
||||||
|
<attribute name="Class-Path" value="AdempiereSLib.jar"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
<delete dir="buildALib" />
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- ==================================================== -->
|
<!-- ==================================================== -->
|
||||||
<!-- Adempiere Client Lib -->
|
<!-- Adempiere Client Lib -->
|
||||||
<!-- ==================================================== -->
|
<!-- ==================================================== -->
|
||||||
|
@ -224,7 +248,7 @@
|
||||||
<!-- ==================================================== -->
|
<!-- ==================================================== -->
|
||||||
<!-- Setup Lib -->
|
<!-- Setup Lib -->
|
||||||
<!-- ==================================================== -->
|
<!-- ==================================================== -->
|
||||||
<target name="setupLib" depends="setupInit, setupWin, setupNonWin, setupCLib, setupSLib"
|
<target name="setupLib" depends="setupInit, setupWin, setupNonWin, setupALib, setupCLib, setupSLib"
|
||||||
description="Setup Adempiere Lib directory">
|
description="Setup Adempiere Lib directory">
|
||||||
|
|
||||||
<!-- Filter files Overwrite -->
|
<!-- Filter files Overwrite -->
|
||||||
|
@ -267,74 +291,20 @@
|
||||||
<zipfileset src="${basedir}/lib/adempiereRootBase.war" />
|
<zipfileset src="${basedir}/lib/adempiereRootBase.war" />
|
||||||
<!-- copy to adempiereHome -->
|
<!-- copy to adempiereHome -->
|
||||||
<zipfileset dir="${basedir}/lib"
|
<zipfileset dir="${basedir}/lib"
|
||||||
includes="customization.jar,patches.jar,AdempiereClient.zip,Adempiere.jar,AdempiereCLib.jar,*.jnlp,*.0,*.html"
|
includes="AdempiereClient.zip,Adempiere.jar,AdempiereCLib.jar,*.jnlp,*.0,*.html"
|
||||||
prefix="adempiereHome" />
|
prefix="adempiereHome" />
|
||||||
</zip>
|
</zip>
|
||||||
|
|
||||||
<!-- Build adempiereRoot ear -->
|
|
||||||
<ear destfile="${basedir}/lib/adempiereRoot.ear" appxml="${basedir}/lib/adempiereRoot.xml">
|
|
||||||
<fileset dir="${basedir}/lib" includes="customization.jar,patches.jar,adempiereRoot.jar,adempiereRoot.war,Adempiere.jar,AdempiereSLib.jar" />
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Specification-Title" value="AdempiereRoot" />
|
|
||||||
<attribute name="Specification-Version" value="${ADEMPIERE_MAIN_VERSION}" />
|
|
||||||
<attribute name="Specification-Vendor" value="Adempiere" />
|
|
||||||
<attribute name="Implementation-Title" value="AdempiereRoot" />
|
|
||||||
<attribute name="Implementation-Version" value="${ADEMPIERE_MAIN_VERSION} ${DSTAMP}-${TSTAMP}" />
|
|
||||||
<attribute name="Implementation-URL" value="http://www.adempiere.org" />
|
|
||||||
<attribute name="Class-Path" value="customization.jar patches.jar adempiereRoot.jar Adempiere.jar AdempiereSLib.jar" />
|
|
||||||
</manifest>
|
|
||||||
</ear>
|
|
||||||
|
|
||||||
<!-- Build adempiereApps ear -->
|
|
||||||
<ear destfile="${basedir}/lib/adempiereApps.ear" appxml="${basedir}/lib/adempiereApps.xml">
|
|
||||||
<fileset dir="${basedir}/lib" includes="customization.jar,patches.jar,adempiereApps.jar,adempiereApps.war,Adempiere.jar,AdempiereSLib.jar" />
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Specification-Title" value="AdempiereApps" />
|
|
||||||
<attribute name="Specification-Version" value="${ADEMPIERE_MAIN_VERSION}" />
|
|
||||||
<attribute name="Specification-Vendor" value="Adempiere" />
|
|
||||||
<attribute name="Implementation-Title" value="AdempiereApps" />
|
|
||||||
<attribute name="Implementation-Version" value="${ADEMPIERE_MAIN_VERSION} ${DSTAMP}-${TSTAMP}" />
|
|
||||||
<attribute name="Implementation-URL" value="http://www.adempiere.org" />
|
|
||||||
<attribute name="Class-Path" value="customization.jar patches.jar Adempiere.jar AdempiereSLib.jar adempiereApps.jar" />
|
|
||||||
</manifest>
|
|
||||||
</ear>
|
|
||||||
|
|
||||||
<!-- Build adempiereWebStore ear -->
|
|
||||||
<ear destfile="${basedir}/lib/adempiereWebStore.ear" appxml="${basedir}/lib/adempiereWebStore.xml">
|
|
||||||
<fileset dir="${basedir}/lib" includes="customization.jar,patches.jar,adempiereWebStore.war,Adempiere.jar,AdempiereSLib.jar,adempiereApps.jar" />
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Specification-Title" value="AdempiereWebStore" />
|
|
||||||
<attribute name="Specification-Version" value="${ADEMPIERE_MAIN_VERSION}" />
|
|
||||||
<attribute name="Specification-Vendor" value="Adempiere" />
|
|
||||||
<attribute name="Implementation-Title" value="AdempiereWebStore" />
|
|
||||||
<attribute name="Implementation-Version" value="${ADEMPIERE_MAIN_VERSION} ${DSTAMP}-${TSTAMP}" />
|
|
||||||
<attribute name="Implementation-URL" value="http://www.adempiere.org" />
|
|
||||||
<attribute name="Class-Path" value="customization.jar patches.jar Adempiere.jar AdempiereSLib.jar adempiereApps.jar" />
|
|
||||||
</manifest>
|
|
||||||
</ear>
|
|
||||||
|
|
||||||
<!-- Create adempiereWebCM war -->
|
<!-- Create adempiereWebCM war -->
|
||||||
<zip destfile="${basedir}/lib/adempiereWebCM.war">
|
<zip destfile="${basedir}/lib/adempiereWebCM.war">
|
||||||
<!-- copy Base -->
|
<!-- copy Base -->
|
||||||
<zipfileset src="${basedir}/lib/adempiereWebCMbase.war" />
|
<zipfileset src="${basedir}/lib/adempiereWebCMbase.war" />
|
||||||
<!-- copy to adempiereHome -->
|
|
||||||
<zipfileset dir="${basedir}/lib"
|
|
||||||
includes="Adempiere.jar,AdempiereSLib.jar"
|
|
||||||
prefix="WEB-INF/lib" />
|
|
||||||
</zip>
|
</zip>
|
||||||
|
|
||||||
<!-- Build adempiereWebCM ear -->
|
<!-- bundle everything in one ear file for simpler deployment -->
|
||||||
<ear destfile="${basedir}/lib/adempiereWebCM.ear" appxml="${basedir}/lib/adempiereWebCM.xml">
|
<ear destfile="${basedir}/lib/adempiere.ear" appxml="${basedir}/lib/adempiereAll.xml">
|
||||||
<fileset dir="${basedir}/lib" includes="adempiereWebCM.war" />
|
<fileset dir="${basedir}/lib"
|
||||||
<manifest>
|
includes="Adempiere.jar,AdempiereSLib.jar,adempiereRoot.jar,adempiereApps.jar,adempiereApps.war,adempiereRoot.war,adempiereWebStore.war,adempiereWebCM.war" />
|
||||||
<attribute name="Specification-Title" value="AdempiereWebCM" />
|
|
||||||
<attribute name="Specification-Version" value="${ADEMPIERE_MAIN_VERSION}" />
|
|
||||||
<attribute name="Specification-Vendor" value="Adempiere" />
|
|
||||||
<attribute name="Implementation-Title" value="AdempiereWebCM" />
|
|
||||||
<attribute name="Implementation-Version" value="${ADEMPIERE_MAIN_VERSION} ${DSTAMP}-${TSTAMP}" />
|
|
||||||
<attribute name="Implementation-URL" value="http://www.adempiere.org" />
|
|
||||||
<attribute name="Class-Path" value="Adempiere.jar AdempiereSLib.jar" />
|
|
||||||
</manifest>
|
|
||||||
</ear>
|
</ear>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -364,11 +334,9 @@
|
||||||
|
|
||||||
<!-- Copy -->
|
<!-- Copy -->
|
||||||
<echo message="AppsDeployment= ${ADEMPIERE_APPS_DEPLOY}" />
|
<echo message="AppsDeployment= ${ADEMPIERE_APPS_DEPLOY}" />
|
||||||
<copy file="${basedir}/lib/adempiereRoot.ear" todir="${ADEMPIERE_APPS_DEPLOY}" />
|
<!-- Deploy in exploded format for faster startup time -->
|
||||||
<copy file="${basedir}/lib/adempiereApps.ear" todir="${ADEMPIERE_APPS_DEPLOY}" />
|
<unjar dest="${ADEMPIERE_APPS_DEPLOY}/adempiere.ear" src="${basedir}/lib/adempiere.ear" overwrite="true">
|
||||||
<copy file="${basedir}/lib/adempiereWebStore.ear" todir="${ADEMPIERE_APPS_DEPLOY}" />
|
</unjar>
|
||||||
<copy file="${basedir}/lib/adempiereWebCM.ear" todir="${ADEMPIERE_APPS_DEPLOY}" />
|
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue