core-jgi/utils_dev/build.xml

210 lines
8.2 KiB
XML
Raw Normal View History

2006-11-17 10:15:04 +07:00
<!-- ================================================ -->
<!-- Adempiere Build -->
<!-- ================================================ -->
<!-- $Header: /cvs/adempiere/utils_dev/build.xml,v 1.4 2006/10/12 00:03:11 jjanke Exp $ -->
<project name="adempiere" default="complete" basedir="../" xmlns:ant4eclipse="antlib:org.ant4eclipse">
2006-11-17 10:15:04 +07:00
<description>
This buildfile is used to build the Adempiere system.
</description>
<!-- set global properties for this build -->
<!--<property environment="env"/>-->
<import file="./properties.xml"/>
2006-11-17 10:15:04 +07:00
<property name="src" value="src"/>
<property name="build.dir" value="build"/>
<target name="init" description="initialization target">
<echo message="=========== Build Adempiere - ${env.ENCODING}"/>
<!-- Create the time stamp -->
<tstamp/>
1) http://kenai.com/jira/browse/HENGSIN-6, RUN_setup.sh failure Use the static method getLogger instead of using a static logger variable. The logger is created as needed inside the getLogger method. 2)http://kenai.com/jira/browse/HENGSIN-3, properties file wrongly created Patch accepted. 3) http://kenai.com/jira/browse/HENGSIN-4, Cannot connect to http://localhost:8080/admin/adempiereMonitor Always set default level for root logger in CLogMgt initialization. 4) http://kenai.com/jira/browse/HENGSIN-5, Build fails by default requiring directory lib/plugins Modify utils_dev/build.xml to ensure the existence of the lib/plugins folder. 5) Module refactoring * Remove client bundle dependency from the zkwebui bundle. Common UI code of the 2 bundle is moved into the new uibase bundle. * Remove client bundle dependency from server side bundle. The swing specific jasper report code is moved into the new JasperReportsClient bundle. * Move most swing code that is still in the base bundle into the client bundle. Many swing client specific code in Env.java (base bundle) is move into the AEnv.java (client bundle). * Default handlers for 2Pack is moved into the new pipoHandlers bundle. All loading of 2pack handler is now done using the equinox extension mechanism. 6) Extension point * Added process, form and modelvalidator extension point base on the existing work done by Jorg Viola in the osgi1 branch. 7) The pipo bundle is move from plugins/pipo to /pipo ( relative to the workspace ) due to ant4eclipse have problem building the bundle using the previous layout. 8) New workflow editor and rendering implementation using netbeans visual library. The implementation is shared the by swing and zk client.
2010-08-20 15:05:06 +07:00
<delete failonerror="false">
2010-07-13 15:15:31 +07:00
<fileset dir="lib/plugins">
<include name="*.jar"/>
</fileset>
</delete>
1) http://kenai.com/jira/browse/HENGSIN-6, RUN_setup.sh failure Use the static method getLogger instead of using a static logger variable. The logger is created as needed inside the getLogger method. 2)http://kenai.com/jira/browse/HENGSIN-3, properties file wrongly created Patch accepted. 3) http://kenai.com/jira/browse/HENGSIN-4, Cannot connect to http://localhost:8080/admin/adempiereMonitor Always set default level for root logger in CLogMgt initialization. 4) http://kenai.com/jira/browse/HENGSIN-5, Build fails by default requiring directory lib/plugins Modify utils_dev/build.xml to ensure the existence of the lib/plugins folder. 5) Module refactoring * Remove client bundle dependency from the zkwebui bundle. Common UI code of the 2 bundle is moved into the new uibase bundle. * Remove client bundle dependency from server side bundle. The swing specific jasper report code is moved into the new JasperReportsClient bundle. * Move most swing code that is still in the base bundle into the client bundle. Many swing client specific code in Env.java (base bundle) is move into the AEnv.java (client bundle). * Default handlers for 2Pack is moved into the new pipoHandlers bundle. All loading of 2pack handler is now done using the equinox extension mechanism. 6) Extension point * Added process, form and modelvalidator extension point base on the existing work done by Jorg Viola in the osgi1 branch. 7) The pipo bundle is move from plugins/pipo to /pipo ( relative to the workspace ) due to ant4eclipse have problem building the bundle using the previous layout. 8) New workflow editor and rendering implementation using netbeans visual library. The implementation is shared the by swing and zk client.
2010-08-20 15:05:06 +07:00
<mkdir dir="lib/plugins"/>
2006-11-17 10:15:04 +07:00
</target>
<target name="jar" depends="init">
2006-11-17 10:15:04 +07:00
<ant inheritAll="false" dir="tools"/>
<ant inheritAll="false" dir="base"/>
<ant inheritAll="false" dir="extend"/>
1) http://kenai.com/jira/browse/HENGSIN-6, RUN_setup.sh failure Use the static method getLogger instead of using a static logger variable. The logger is created as needed inside the getLogger method. 2)http://kenai.com/jira/browse/HENGSIN-3, properties file wrongly created Patch accepted. 3) http://kenai.com/jira/browse/HENGSIN-4, Cannot connect to http://localhost:8080/admin/adempiereMonitor Always set default level for root logger in CLogMgt initialization. 4) http://kenai.com/jira/browse/HENGSIN-5, Build fails by default requiring directory lib/plugins Modify utils_dev/build.xml to ensure the existence of the lib/plugins folder. 5) Module refactoring * Remove client bundle dependency from the zkwebui bundle. Common UI code of the 2 bundle is moved into the new uibase bundle. * Remove client bundle dependency from server side bundle. The swing specific jasper report code is moved into the new JasperReportsClient bundle. * Move most swing code that is still in the base bundle into the client bundle. Many swing client specific code in Env.java (base bundle) is move into the AEnv.java (client bundle). * Default handlers for 2Pack is moved into the new pipoHandlers bundle. All loading of 2pack handler is now done using the equinox extension mechanism. 6) Extension point * Added process, form and modelvalidator extension point base on the existing work done by Jorg Viola in the osgi1 branch. 7) The pipo bundle is move from plugins/pipo to /pipo ( relative to the workspace ) due to ant4eclipse have problem building the bundle using the previous layout. 8) New workflow editor and rendering implementation using netbeans visual library. The implementation is shared the by swing and zk client.
2010-08-20 15:05:06 +07:00
<ant inheritAll="false" dir="uibase"/>
2006-11-17 10:15:04 +07:00
<ant inheritAll="false" dir="client"/>
<ant inheritAll="false" dir="JasperReports"/>
2010-07-13 15:15:31 +07:00
<ant inheritAll="false" dir="JasperReportsTools"/>
<ant inheritAll="false" dir="JasperReportsWebApp"/>
1) http://kenai.com/jira/browse/HENGSIN-6, RUN_setup.sh failure Use the static method getLogger instead of using a static logger variable. The logger is created as needed inside the getLogger method. 2)http://kenai.com/jira/browse/HENGSIN-3, properties file wrongly created Patch accepted. 3) http://kenai.com/jira/browse/HENGSIN-4, Cannot connect to http://localhost:8080/admin/adempiereMonitor Always set default level for root logger in CLogMgt initialization. 4) http://kenai.com/jira/browse/HENGSIN-5, Build fails by default requiring directory lib/plugins Modify utils_dev/build.xml to ensure the existence of the lib/plugins folder. 5) Module refactoring * Remove client bundle dependency from the zkwebui bundle. Common UI code of the 2 bundle is moved into the new uibase bundle. * Remove client bundle dependency from server side bundle. The swing specific jasper report code is moved into the new JasperReportsClient bundle. * Move most swing code that is still in the base bundle into the client bundle. Many swing client specific code in Env.java (base bundle) is move into the AEnv.java (client bundle). * Default handlers for 2Pack is moved into the new pipoHandlers bundle. All loading of 2pack handler is now done using the equinox extension mechanism. 6) Extension point * Added process, form and modelvalidator extension point base on the existing work done by Jorg Viola in the osgi1 branch. 7) The pipo bundle is move from plugins/pipo to /pipo ( relative to the workspace ) due to ant4eclipse have problem building the bundle using the previous layout. 8) New workflow editor and rendering implementation using netbeans visual library. The implementation is shared the by swing and zk client.
2010-08-20 15:05:06 +07:00
<ant inheritAll="false" dir="JasperReportsClient"/>
2006-11-17 10:15:04 +07:00
<ant inheritAll="false" dir="serverRoot"/>
<ant inheritAll="false" dir="serverApps"/>
<ant inheritAll="false" dir="webStore"/>
2008-07-10 13:02:55 +07:00
<ant inheritAll="false" dir="zkwebui"/>
<ant inheritAll="false" dir="tomcatConfig"/>
1) http://kenai.com/jira/browse/HENGSIN-6, RUN_setup.sh failure Use the static method getLogger instead of using a static logger variable. The logger is created as needed inside the getLogger method. 2)http://kenai.com/jira/browse/HENGSIN-3, properties file wrongly created Patch accepted. 3) http://kenai.com/jira/browse/HENGSIN-4, Cannot connect to http://localhost:8080/admin/adempiereMonitor Always set default level for root logger in CLogMgt initialization. 4) http://kenai.com/jira/browse/HENGSIN-5, Build fails by default requiring directory lib/plugins Modify utils_dev/build.xml to ensure the existence of the lib/plugins folder. 5) Module refactoring * Remove client bundle dependency from the zkwebui bundle. Common UI code of the 2 bundle is moved into the new uibase bundle. * Remove client bundle dependency from server side bundle. The swing specific jasper report code is moved into the new JasperReportsClient bundle. * Move most swing code that is still in the base bundle into the client bundle. Many swing client specific code in Env.java (base bundle) is move into the AEnv.java (client bundle). * Default handlers for 2Pack is moved into the new pipoHandlers bundle. All loading of 2pack handler is now done using the equinox extension mechanism. 6) Extension point * Added process, form and modelvalidator extension point base on the existing work done by Jorg Viola in the osgi1 branch. 7) The pipo bundle is move from plugins/pipo to /pipo ( relative to the workspace ) due to ant4eclipse have problem building the bundle using the previous layout. 8) New workflow editor and rendering implementation using netbeans visual library. The implementation is shared the by swing and zk client.
2010-08-20 15:05:06 +07:00
<ant inheritAll="false" dir="pipo"/>
<ant inheritAll="false" dir="pipoHandlers"/>
<ant inheritAll="false" dir="oracleProvider"/>
<ant inheritAll="false" dir="postgresqlProvider"/>
2006-11-17 10:15:04 +07:00
</target>
2010-07-13 15:15:31 +07:00
<target name="build" depends="jar">
<ant inheritAll="false" dir="install"/>
</target>
2006-11-17 10:15:04 +07:00
<target name="clean">
<ant inheritAll="false" dir="tools" target="clean"/>
<ant inheritAll="false" dir="base" target="clean"/>
<ant inheritAll="false" dir="extend" target="clean"/>
2007-01-20 02:32:21 +07:00
<ant inheritAll="false" dir="JasperReports" target="clean"/>
1) http://kenai.com/jira/browse/HENGSIN-6, RUN_setup.sh failure Use the static method getLogger instead of using a static logger variable. The logger is created as needed inside the getLogger method. 2)http://kenai.com/jira/browse/HENGSIN-3, properties file wrongly created Patch accepted. 3) http://kenai.com/jira/browse/HENGSIN-4, Cannot connect to http://localhost:8080/admin/adempiereMonitor Always set default level for root logger in CLogMgt initialization. 4) http://kenai.com/jira/browse/HENGSIN-5, Build fails by default requiring directory lib/plugins Modify utils_dev/build.xml to ensure the existence of the lib/plugins folder. 5) Module refactoring * Remove client bundle dependency from the zkwebui bundle. Common UI code of the 2 bundle is moved into the new uibase bundle. * Remove client bundle dependency from server side bundle. The swing specific jasper report code is moved into the new JasperReportsClient bundle. * Move most swing code that is still in the base bundle into the client bundle. Many swing client specific code in Env.java (base bundle) is move into the AEnv.java (client bundle). * Default handlers for 2Pack is moved into the new pipoHandlers bundle. All loading of 2pack handler is now done using the equinox extension mechanism. 6) Extension point * Added process, form and modelvalidator extension point base on the existing work done by Jorg Viola in the osgi1 branch. 7) The pipo bundle is move from plugins/pipo to /pipo ( relative to the workspace ) due to ant4eclipse have problem building the bundle using the previous layout. 8) New workflow editor and rendering implementation using netbeans visual library. The implementation is shared the by swing and zk client.
2010-08-20 15:05:06 +07:00
<ant inheritAll="false" dir="JasperReportsTools" target="clean"/>
<ant inheritAll="false" dir="JasperReportsWebApp" target="clean"/>
<ant inheritAll="false" dir="JasperReportsClient" target="clean"/>
<ant inheritAll="false" dir="uibase" target="clean"/>
2006-11-17 10:15:04 +07:00
<ant inheritAll="false" dir="client" target="clean"/>
<ant inheritAll="false" dir="serverRoot" target="clean"/>
<ant inheritAll="false" dir="serverApps" target="clean"/>
<ant inheritAll="false" dir="webStore" target="clean"/>
<ant inheritAll="false" dir="install" target="clean"/>
2008-07-10 13:02:55 +07:00
<ant inheritAll="false" dir="zkwebui" target="clean"/>
<ant inheritAll="false" dir="tomcatConfig" target="clean"/>
1) http://kenai.com/jira/browse/HENGSIN-6, RUN_setup.sh failure Use the static method getLogger instead of using a static logger variable. The logger is created as needed inside the getLogger method. 2)http://kenai.com/jira/browse/HENGSIN-3, properties file wrongly created Patch accepted. 3) http://kenai.com/jira/browse/HENGSIN-4, Cannot connect to http://localhost:8080/admin/adempiereMonitor Always set default level for root logger in CLogMgt initialization. 4) http://kenai.com/jira/browse/HENGSIN-5, Build fails by default requiring directory lib/plugins Modify utils_dev/build.xml to ensure the existence of the lib/plugins folder. 5) Module refactoring * Remove client bundle dependency from the zkwebui bundle. Common UI code of the 2 bundle is moved into the new uibase bundle. * Remove client bundle dependency from server side bundle. The swing specific jasper report code is moved into the new JasperReportsClient bundle. * Move most swing code that is still in the base bundle into the client bundle. Many swing client specific code in Env.java (base bundle) is move into the AEnv.java (client bundle). * Default handlers for 2Pack is moved into the new pipoHandlers bundle. All loading of 2pack handler is now done using the equinox extension mechanism. 6) Extension point * Added process, form and modelvalidator extension point base on the existing work done by Jorg Viola in the osgi1 branch. 7) The pipo bundle is move from plugins/pipo to /pipo ( relative to the workspace ) due to ant4eclipse have problem building the bundle using the previous layout. 8) New workflow editor and rendering implementation using netbeans visual library. The implementation is shared the by swing and zk client.
2010-08-20 15:05:06 +07:00
<ant inheritAll="false" dir="pipo" target="clean"/>
<ant inheritAll="false" dir="pipoHandlers" target="clean"/>
<ant inheritAll="false" dir="oracleProvider" target="clean"/>
<ant inheritAll="false" dir="postgresqlProvider" target="clean"/>
</target>
<target name="clean-all" depends="clean">
<delete dir="${env.ADEMPIERE_ROOT}"/>
</target>
2006-11-17 10:15:04 +07:00
<target name="update-adempiere-jar" depends="init">
<ant inheritAll="false" dir="base" target="compile"/>
<ant inheritAll="false" dir="extend" target="compile"/>
<ant inheritAll="false" dir="client"/>
</target>
2010-07-13 15:15:31 +07:00
<target name="update-serverRoot" depends="init">
<ant inheritAll="false" dir="serverRoot"/>
</target>
2010-07-13 15:15:31 +07:00
2006-11-17 10:15:04 +07:00
<!-- ================================================ -->
<!-- Adempiere Local Install -->
<!-- ================================================ -->
<target name="install" depends="" description="Environment dependent">
<echo message="=========== Install Adempiere"/>
<copy todir="${env.ADEMPIERE_INSTALL}" verbose="true">
2006-11-17 10:15:04 +07:00
<fileset dir="install/build" includes="Adempiere_*"/>
</copy>
<!-- Delete Existing stuff, but not utils + data -->
<delete failonerror="false">
<fileset dir="${env.ADEMPIERE_HOME}/lib"/>
<fileset dir="${env.ADEMPIERE_HOME}/jboss"/>
</delete>
<!-- Unzip Install File -->
2010-07-13 15:15:31 +07:00
<unzip src="install/build/Adempiere_${env.ADEMPIERE_VERSION_FILE}.zip"
dest="${env.ADEMPIERE_ROOT}"
2006-11-17 10:15:04 +07:00
overwrite="yes"/>
<!-- Run Setup -->
<!--
2010-07-13 15:15:31 +07:00
<input addproperty="runSetupInput"
message="Run Setup(Y/N) ? "
validargs="Y,y,N,n"/>
2010-07-13 15:15:31 +07:00
<antcall target="runSetup"/>
-->
</target>
2010-07-13 15:15:31 +07:00
<!-- ================================================ -->
<!-- Adempiere OSGi Update -->
<!-- ================================================ -->
<target name="plugins">
<ant4eclipse:executeProjectSet workspaceDirectory=".." allWorkspaceProjects="true">
<ant4eclipse:forEachProject filter="(executeProjectSet.org.eclipse.pde.PluginNature=*)">
<buildPlugin workspaceDirectory=".."
projectName="${executeProjectSet.project.name}"
targetPlatformId="target.platform"
destination="lib"
buildSourceJar="false"
clean="no"/>
</ant4eclipse:forEachProject>
</ant4eclipse:executeProjectSet>
</target>
2010-07-13 15:15:31 +07:00
2007-01-12 20:51:48 +07:00
<!-- ================================================ -->
<!-- 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 -->
2010-07-13 15:15:31 +07:00
<unzip src="install/build/Adempiere_${env.ADEMPIERE_VERSION_FILE}.zip"
dest="${env.ADEMPIERE_ROOT}"
2007-01-12 20:51:48 +07:00
overwrite="yes"/>
<!-- Run Setup -->
<antcall target="runUpdateWin"></antcall>
<antcall target="runUpdateNonWin"></antcall>
</target>
2010-07-13 15:15:31 +07:00
<target name="runSetupInit">
<condition property="isWindows">
<os family="windows" />
</condition>
</target>
2010-07-13 15:15:31 +07:00
<target name="runSetupWin" depends="runSetupInit" if="isWindows" >
2010-07-13 15:15:31 +07:00
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_setup.bat"
spawn="false" resolveexecutable="true">
</exec>
</target>
2010-07-13 15:15:31 +07:00
<target name="runSetupNonWin" depends="runSetupInit" unless="isWindows" >
<chmod dir="${env.ADEMPIERE_HOME}" perm="ugo+rx" includes="RUN_setup.sh"/>
2010-07-13 15:15:31 +07:00
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_setup.sh"
spawn="false" resolveexecutable="true">
</exec>
2006-11-17 10:15:04 +07:00
</target>
2010-07-13 15:15:31 +07:00
<target name="runSetupCheck">
<condition property="setup.yes">
<or>
<equals arg1="y" arg2="${runSetupInput}"/>
<equals arg1="Y" arg2="${runSetupInput}"/>
</or>
</condition>
</target>
2010-07-13 15:15:31 +07:00
<target name="runSetup" depends="runSetupCheck" if="setup.yes">
<antcall target="runSetupWin"></antcall>
<antcall target="runSetupNonWin"></antcall>
</target>
2006-11-17 10:15:04 +07:00
2007-01-12 20:51:48 +07:00
<target name="runUpdateWin" depends="runSetupInit" if="isWindows" >
2010-07-13 15:15:31 +07:00
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_update.bat"
2007-01-12 20:51:48 +07:00
spawn="false" resolveexecutable="true">
</exec>
</target>
2010-07-13 15:15:31 +07:00
<target name="runUpdateNonWin" depends="runSetupInit" unless="isWindows" >
<chmod dir="${env.ADEMPIERE_HOME}" perm="ugo+rx" includes="RUN_update.sh"/>
2010-07-13 15:15:31 +07:00
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_update.sh"
2007-01-12 20:51:48 +07:00
spawn="false" resolveexecutable="true">
</exec>
</target>
2006-11-17 10:15:04 +07:00
<!-- ================================================ -->
2007-01-12 20:51:48 +07:00
<!-- complete -->
2006-11-17 10:15:04 +07:00
<!-- ================================================ -->
<target name="complete" depends="build, install">
</target>
2010-07-13 15:15:31 +07:00
2007-01-12 20:51:48 +07:00
<!-- ================================================ -->
<!-- update -->
<!-- ================================================ -->
<target name="update" depends="build, updateDeploy">
</target>
2006-11-17 10:15:04 +07:00
<!-- ================================================ -->
<!-- Transfer Install -->
<!-- ================================================ -->
<target name="transfer" depends="complete" description="Transfer to Distribution media">
</target>
</project>