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="../">
|
|
|
|
<description>
|
|
|
|
This buildfile is used to build the Adempiere system.
|
|
|
|
</description>
|
|
|
|
<!-- set global properties for this build -->
|
2007-01-30 16:06:53 +07:00
|
|
|
<!--<property environment="env"/>-->
|
2007-01-30 17:13:17 +07:00
|
|
|
<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/>
|
|
|
|
</target>
|
2007-12-28 09:41:10 +07:00
|
|
|
<target name="jar" depends="init">
|
2006-11-17 10:15:04 +07:00
|
|
|
<ant inheritAll="false" dir="tools"/>
|
|
|
|
<ant inheritAll="false" dir="looks"/>
|
|
|
|
<ant inheritAll="false" dir="base"/>
|
|
|
|
<ant inheritAll="false" dir="extend"/>
|
|
|
|
<ant inheritAll="false" dir="client"/>
|
2007-03-01 00:57:05 +07:00
|
|
|
<ant inheritAll="false" dir="JasperReports"/>
|
|
|
|
<ant inheritAll="false" dir="JasperReportsWebApp"/>
|
2006-11-17 10:15:04 +07:00
|
|
|
<ant inheritAll="false" dir="serverRoot"/>
|
|
|
|
<ant inheritAll="false" dir="serverApps"/>
|
|
|
|
<ant inheritAll="false" dir="webStore"/>
|
|
|
|
<ant inheritAll="false" dir="webCM"/>
|
2007-12-28 09:41:10 +07:00
|
|
|
<ant inheritAll="false" dir="sqlj"/>
|
2008-10-19 03:26:09 +07:00
|
|
|
<!--ant inheritAll="false" dir="posterita/posterita"/-->
|
2008-07-10 13:02:55 +07:00
|
|
|
<ant inheritAll="false" dir="zkwebui"/>
|
2006-11-17 10:15:04 +07:00
|
|
|
</target>
|
2007-12-28 09:41:10 +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="looks" 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"/>
|
2007-03-01 00:57:05 +07:00
|
|
|
<ant inheritAll="false" dir="JasperReportsWebApp" 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="webCM" target="clean"/>
|
2008-03-07 07:54:09 +07:00
|
|
|
<ant inheritAll="false" dir="sqlj" target="clean"/>
|
2008-10-19 03:26:09 +07:00
|
|
|
<!--ant inheritAll="false" dir="posterita/posterita" target="clean"/-->
|
2006-11-17 10:15:04 +07:00
|
|
|
<ant inheritAll="false" dir="install" target="clean"/>
|
2008-07-10 13:02:55 +07:00
|
|
|
<ant inheritAll="false" dir="zkwebui" target="clean"/>
|
2008-03-07 07:54:09 +07:00
|
|
|
</target>
|
2007-02-16 05:06:48 +07:00
|
|
|
|
|
|
|
<target name="clean-all" depends="clean">
|
|
|
|
<delete dir="${env.ADEMPIERE_ROOT}"/>
|
|
|
|
</target>
|
2006-11-17 10:15:04 +07:00
|
|
|
|
2007-03-26 17:27:08 +07:00
|
|
|
<target name="update-adempiere-jar" depends="init">
|
|
|
|
<ant inheritAll="false" dir="looks" target="looksCompile"/>
|
|
|
|
<ant inheritAll="false" dir="base" target="compile"/>
|
|
|
|
<ant inheritAll="false" dir="extend" target="compile"/>
|
|
|
|
<ant inheritAll="false" dir="client"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="update-serverRoot" depends="init">
|
|
|
|
<ant inheritAll="false" dir="serverRoot"/>
|
|
|
|
</target>
|
|
|
|
|
2006-11-17 10:15:04 +07:00
|
|
|
<!-- ================================================ -->
|
|
|
|
<!-- Adempiere Local Install -->
|
|
|
|
<!-- ================================================ -->
|
|
|
|
<target name="install" depends="" description="Environment dependent">
|
|
|
|
<echo message="=========== Install Adempiere"/>
|
2007-03-04 15:52:32 +07:00
|
|
|
<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 -->
|
|
|
|
<unzip src="install/build/Adempiere_${env.ADEMPIERE_VERSION_FILE}.zip"
|
|
|
|
dest="${env.ADEMPIERE_ROOT}"
|
|
|
|
overwrite="yes"/>
|
|
|
|
<!-- Run Setup -->
|
2007-01-30 16:06:53 +07:00
|
|
|
<!--
|
2007-01-15 01:47:53 +07:00
|
|
|
<input addproperty="runSetupInput"
|
|
|
|
message="Run Setup(Y/N) ? "
|
|
|
|
validargs="Y,y,N,n"/>
|
|
|
|
|
|
|
|
<antcall target="runSetup"/>
|
2007-01-30 16:06:53 +07:00
|
|
|
-->
|
2006-11-28 20:37:40 +07:00
|
|
|
</target>
|
|
|
|
|
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 -->
|
|
|
|
<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>
|
|
|
|
|
2006-11-28 20:37:40 +07:00
|
|
|
<target name="runSetupInit">
|
|
|
|
<condition property="isWindows">
|
|
|
|
<os family="windows" />
|
|
|
|
</condition>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="runSetupWin" depends="runSetupInit" if="isWindows" >
|
|
|
|
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_setup.bat"
|
|
|
|
spawn="false" resolveexecutable="true">
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2007-02-16 06:25:39 +07:00
|
|
|
<target name="runSetupNonWin" depends="runSetupInit" unless="isWindows" >
|
|
|
|
<chmod dir="${env.ADEMPIERE_HOME}" perm="ugo+rx" includes="RUN_setup.sh"/>
|
2006-11-28 20:37:40 +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>
|
2007-01-15 01:47:53 +07:00
|
|
|
|
|
|
|
<target name="runSetupCheck">
|
|
|
|
<condition property="setup.yes">
|
|
|
|
<or>
|
|
|
|
<equals arg1="y" arg2="${runSetupInput}"/>
|
|
|
|
<equals arg1="Y" arg2="${runSetupInput}"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<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" >
|
|
|
|
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_update.bat"
|
|
|
|
spawn="false" resolveexecutable="true">
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2007-02-16 06:25:39 +07:00
|
|
|
<target name="runUpdateNonWin" depends="runSetupInit" unless="isWindows" >
|
|
|
|
<chmod dir="${env.ADEMPIERE_HOME}" perm="ugo+rx" includes="RUN_update.sh"/>
|
2007-01-12 20:51:48 +07:00
|
|
|
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_update.sh"
|
|
|
|
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>
|
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>
|
2008-03-07 07:54:09 +07:00
|
|
|
</project>
|