2006-12-29 20:20:57 +07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-11-17 10:05:26 +07:00
|
|
|
<!-- ============================================= -->
|
|
|
|
<!-- Base -->
|
|
|
|
<!-- ============================================= -->
|
|
|
|
<!-- $Header: /cvs/adempiere/base/build.xml,v 1.1 2006/04/21 17:41:36 jjanke Exp $ -->
|
|
|
|
|
|
|
|
<project name="base" default="dist" basedir=".">
|
|
|
|
|
|
|
|
<description>
|
|
|
|
This buildfile is used to build the base subproject within
|
|
|
|
the Adempiere project.
|
|
|
|
</description>
|
|
|
|
|
|
|
|
<!-- set global properties for this build -->
|
|
|
|
<property name="src" value="src"/>
|
|
|
|
<property name="build.dir" value="build"/>
|
|
|
|
<property name="dist.dir" value="."/>
|
|
|
|
<property name="jar.path" value="../lib"/>
|
|
|
|
<property name="jar.name" value="Base"/>
|
|
|
|
|
|
|
|
<!-- set path to include the necessary jar files for javac -->
|
|
|
|
<path id="project.class.path">
|
|
|
|
<pathelement path="${classpath}"/>
|
|
|
|
<pathelement path="${jar.path}/CCTools.jar"/>
|
2007-05-09 18:08:52 +07:00
|
|
|
<pathelement path="${jar.path}/oracle.jar"/>
|
|
|
|
<pathelement path="${jar.path}/postgresql.jar"/>
|
|
|
|
<pathelement path="${jar.path}/jboss.jar"/>
|
2006-11-17 10:05:26 +07:00
|
|
|
<pathelement path="../looks/CLooks.jar"/>
|
|
|
|
<pathelement path="../tools/lib/junit.jar"/>
|
|
|
|
<pathelement path="../tools/lib/j2ee.jar"/>
|
|
|
|
<pathelement path="../tools/lib/jnlp.jar"/>
|
2007-05-10 18:48:47 +07:00
|
|
|
<pathelement path="../tools/lib/servlet-api.jar" />
|
2006-11-17 10:05:26 +07:00
|
|
|
</path>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="init" description="initialization target">
|
|
|
|
<echo message="=========== Build Base"/>
|
|
|
|
<!-- create the time stamp -->
|
|
|
|
<tstamp/>
|
|
|
|
<!-- create the build directory structure used by compile -->
|
|
|
|
<mkdir dir="${build.dir}"/>
|
|
|
|
<!-- check for the distribution directory -->
|
|
|
|
<available file="${dist.dir}" type="dir" property="dist.dir.exists"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="makedir" depends="init" unless="dist.dir.exists">
|
|
|
|
<!-- create the distribution directory if not available -->
|
|
|
|
<mkdir dir="${dist.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="compile" depends="makedir">
|
|
|
|
<!-- compile the java code from ${src} into ${build.dir} -->
|
2007-05-09 18:08:52 +07:00
|
|
|
<javac fork="true" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on" memoryinitialsize="512m" memorymaximumsize="512m">
|
2006-11-17 10:05:26 +07:00
|
|
|
<classpath refid="project.class.path"/>
|
|
|
|
</javac>
|
|
|
|
<!-- copy all image & sound files from src to the build directory -->
|
|
|
|
<copy todir="${build.dir}">
|
|
|
|
<fileset dir="${src}">
|
|
|
|
<include name="**/images/*"/>
|
|
|
|
<include name="**/*.gif"/>
|
|
|
|
<include name="**/*.jpg"/>
|
2007-06-26 00:15:16 +07:00
|
|
|
<include name="**/*.png"/>
|
2006-11-17 10:05:26 +07:00
|
|
|
<include name="**/*.wav"/>
|
|
|
|
<include name="**/*.htm"/>
|
|
|
|
<include name="**/*.html"/>
|
|
|
|
<include name="**/*.properties"/>
|
|
|
|
<exclude name="**/package.html"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- =========================================== -->
|
|
|
|
<!-- Distribution -->
|
|
|
|
<!-- =========================================== -->
|
|
|
|
<target name="dist" depends="compile">
|
|
|
|
<!-- put everything from ${build.dir} into the ${jar.name}.jar file -->
|
|
|
|
<jar jarfile="${dist.dir}/${jar.name}.jar" basedir="${build.dir}"/>
|
|
|
|
</target>
|
2007-05-26 02:18:25 +07:00
|
|
|
|
|
|
|
<path id="class.path.test">
|
|
|
|
<pathelement path="${build.dir}"/>
|
|
|
|
<pathelement path="${classpath}"/>
|
|
|
|
<pathelement path="${jar.path}/CCTools.jar"/>
|
|
|
|
<pathelement path="../base/build"/>
|
|
|
|
<pathelement path="../looks/CLooks.jar"/>
|
|
|
|
<pathelement path="../tools/lib/junit.jar"/>
|
|
|
|
<pathelement path="../adempiere/Adempiere/lib/Adempiere.jar" />
|
|
|
|
<pathelement path="../adempiere/Adempiere/lib/jboss.jar" />
|
|
|
|
<pathelement path="../adempiere/Adempiere/lib/oracle.jar" />
|
|
|
|
<pathelement path="../adempiere/Adempiere/lib/postgresql.jar" />
|
|
|
|
<pathelement path="./base.jar" />
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="GenerateModel" depends="dist">
|
|
|
|
<java fork="true" classname="org.compiere.util.GenerateModel">
|
|
|
|
<classpath refid="class.path.test" />
|
2007-05-26 03:07:20 +07:00
|
|
|
<arg value="/work2/adempiere/base/src/org/compiere/model/"/>
|
2007-05-26 02:18:25 +07:00
|
|
|
<arg value="org.compiere.model"/>
|
2007-05-26 03:07:20 +07:00
|
|
|
<arg value="'D'"/>
|
2007-05-26 02:33:23 +07:00
|
|
|
<arg value="'AD_Package_Exp_Detail'"/>
|
2007-05-26 02:18:25 +07:00
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2006-11-17 10:05:26 +07:00
|
|
|
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<!-- Delete the ${build.dir} directory trees -->
|
|
|
|
<delete dir="${build.dir}"/>
|
|
|
|
<delete file="${dist.dir}/${jar.name}.jar" failonerror="false"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|