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 -->
|
|
|
|
<property environment="env"/>
|
|
|
|
<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>
|
|
|
|
<target name="build" depends="init">
|
|
|
|
<ant inheritAll="false" dir="tools"/>
|
|
|
|
<ant inheritAll="false" dir="looks"/>
|
|
|
|
<ant inheritAll="false" dir="dbPort"/>
|
|
|
|
<ant inheritAll="false" dir="print"/>
|
|
|
|
<ant inheritAll="false" dir="base"/>
|
|
|
|
<ant inheritAll="false" dir="extend"/>
|
|
|
|
<ant inheritAll="false" dir="client"/>
|
|
|
|
<ant inheritAll="false" dir="serverRoot"/>
|
|
|
|
<ant inheritAll="false" dir="serverApps"/>
|
|
|
|
<ant inheritAll="false" dir="webStore"/>
|
|
|
|
<ant inheritAll="false" dir="webCM"/>
|
|
|
|
<ant inheritAll="false" dir="sqlj"/>
|
|
|
|
<ant inheritAll="false" dir="install"/>
|
|
|
|
</target>
|
|
|
|
<target name="clean">
|
|
|
|
<ant inheritAll="false" dir="tools" target="clean"/>
|
|
|
|
<ant inheritAll="false" dir="looks" target="clean"/>
|
|
|
|
<ant inheritAll="false" dir="print" target="clean"/>
|
|
|
|
<ant inheritAll="false" dir="dbPort" target="clean"/>
|
|
|
|
<ant inheritAll="false" dir="base" target="clean"/>
|
|
|
|
<ant inheritAll="false" dir="extend" target="clean"/>
|
|
|
|
<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"/>
|
|
|
|
<ant inheritAll="false" dir="sqlj" target="clean"/>
|
|
|
|
<ant inheritAll="false" dir="install" target="clean"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ================================================ -->
|
|
|
|
<!-- Adempiere Local Install -->
|
|
|
|
<!-- ================================================ -->
|
|
|
|
<target name="install" depends="" description="Environment dependent">
|
|
|
|
<echo message="=========== Install Adempiere"/>
|
|
|
|
<copy todir="${env.ADEMPIERE_INSTALL}">
|
|
|
|
<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 -->
|
2006-11-28 20:37:40 +07:00
|
|
|
<!--
|
2006-11-17 10:15:04 +07:00
|
|
|
<ant inheritAll="false" dir="${env.ADEMPIERE_HOME}" target="setup"/>
|
2006-11-28 20:37:40 +07:00
|
|
|
-->
|
|
|
|
<antcall target="runSetupWin"></antcall>
|
|
|
|
<antcall target="runSetupNonWin"></antcall>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<target name="runSetupNonWin" depends="runSetupInit" unless="isWindows" >
|
|
|
|
<exec dir="${env.ADEMPIERE_HOME}" executable="RUN_setup.sh"
|
|
|
|
spawn="false" resolveexecutable="true">
|
|
|
|
</exec>
|
2006-11-17 10:15:04 +07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ================================================ -->
|
|
|
|
<!-- complere -->
|
|
|
|
<!-- ================================================ -->
|
|
|
|
<target name="complete" depends="build, install">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ================================================ -->
|
|
|
|
<!-- Transfer Install -->
|
|
|
|
<!-- ================================================ -->
|
|
|
|
<target name="transfer" depends="complete" description="Transfer to Distribution media">
|
|
|
|
</target>
|
|
|
|
</project>
|