2010-11-29 00:59:28 +07:00
|
|
|
<!-- ====================================================== -->
|
|
|
|
<!-- Setup Tomcat For Development Environment -->
|
|
|
|
<!-- ====================================================== -->
|
|
|
|
|
|
|
|
<project name="setup" default="setup" basedir=".">
|
|
|
|
|
|
|
|
<description>
|
|
|
|
This buildfile is used to setup the Adempiere Environment.
|
|
|
|
</description>
|
|
|
|
|
|
|
|
<property environment="env" />
|
2012-06-06 21:13:34 +07:00
|
|
|
<property name="envFile" value="../idempiereEnv.properties" />
|
2010-11-29 00:59:28 +07:00
|
|
|
|
|
|
|
<!-- ==================================================== -->
|
|
|
|
<!-- Init -->
|
|
|
|
<!-- ==================================================== -->
|
|
|
|
<target name="setupTomcat"
|
|
|
|
description="setup tomcat">
|
|
|
|
|
|
|
|
<echo message="Setup Tomcat ===================" />
|
2012-06-06 21:13:34 +07:00
|
|
|
<echo message="IDEMPIERE_HOME = ${env.IDEMPIERE_HOME}" />
|
2010-11-29 00:59:28 +07:00
|
|
|
|
|
|
|
<!-- create the time stamp and environment -->
|
|
|
|
<tstamp />
|
|
|
|
<available file="${envFile}" property="envFileExists" />
|
|
|
|
<fail message="**** RUN_setup was not successful - please re-run ****" unless="envFileExists" />
|
|
|
|
<property file="${envFile}"/>
|
|
|
|
<filter filtersfile="${envFile}" />
|
|
|
|
|
|
|
|
<copy file="../org.adempiere.tomcat.config/META-INF/tomcat/serverTemplate.xml"
|
|
|
|
tofile="../org.adempiere.tomcat.config/META-INF/tomcat/server.xml" filtering="yes" overwrite="yes"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ==================================================== -->
|
|
|
|
<!-- Setup (Main) -->
|
|
|
|
<!-- ==================================================== -->
|
|
|
|
<target name="setup" depends="setupTomcat"
|
|
|
|
description="Setup Adempiere">
|
|
|
|
</target>
|
|
|
|
</project>
|