core-jgi/dbPort/build.xml

106 lines
3.9 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
2006-11-17 10:07:23 +07:00
<!-- ============================================= -->
<!-- dbPort -->
<!-- ============================================= -->
<!-- $Header: /cvs/adempiere/dbPort/build.xml,v 1.3 2006/07/03 23:19:37 jjanke Exp $ -->
<project name="dbPort" default="dist" basedir=".">
<description>
This buildfile is used to build the dbPort subproject within
the Adempiere project.
</description>
<!-- set global properties for this build -->
<!--<property environment="env"/>-->
<import file="../utils_dev/properties.xml"/>
2006-11-17 10:07:23 +07:00
<property name="src" value="src"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="."/>
2006-12-02 00:14:01 +07:00
<property name="lib.dir" value="../lib"/>
<property name="toolslib.dir" value="../tools/lib"/>
<!-- set path to include the necessary jar files for javac -->
2006-11-17 10:07:23 +07:00
<path id="project.class.path">
<pathelement path="${classpath}"/>
<pathelement path="${lib.dir}/oracle.jar"/>
<pathelement path="${lib.dir}/postgresql.jar"/>
<pathelement path="${lib.dir}/derby.jar"/>
<pathelement path="${lib.dir}/postgresql.jar"/>
2006-12-02 00:14:01 +07:00
<pathelement path="${lib.dir}/fyracle.jar"/>
2006-11-17 10:07:23 +07:00
<pathelement path="${lib.dir}/jboss.jar"/>
<pathelement path="${lib.dir}/CCTools.jar"/>
2006-12-02 00:14:01 +07:00
<pathelement path="../looks/CLooks.jar"/>
2006-11-17 10:07:23 +07:00
<pathelement path="${lib.dir}/freepdf.jar"/>
<pathelement path="${lib.dir}/customization.jar"/>
<pathelement path="${lib.dir}/patches.jar"/>
2006-11-17 10:07:23 +07:00
<pathelement path="${toolslib.dir}/junit.jar"/>
2006-12-07 10:33:46 +07:00
<pathelement path="../derby/derbyclient.jar"/>
<pathelement path="../derby/derbynet.jar"/>
<pathelement path="../derby/derbytools.jar"/>
2006-11-17 10:07:23 +07:00
<!-- Recursive relationship: require AppsServer -->
<pathelement path="../base/Base.jar"/>
<!-- <pathelement path="../interfaces/Interfaces.jar"/> -->
<pathelement path="../tools/lib/j2ee.jar"/>
</path>
2006-12-02 00:14:01 +07:00
<target name="init" description="initialization target">
<echo message="=========== Build dbPort"/>
<!-- 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}/${dist.dir}"/>
</target>
2006-11-17 10:07:23 +07:00
2006-12-02 00:14:01 +07:00
<target name="compile" depends="makedir">
2006-11-17 10:07:23 +07:00
<property name="src.interfaces" value="../interfaces/src"/>
<!-- compile the java code from ${src} into ${build.dir} -->
<javac destdir="${build.dir}"
2006-12-02 00:14:01 +07:00
deprecation="on" debug="on" encoding="${env.ENCODING}">
<src path="${src}"/>
2006-11-17 10:07:23 +07:00
<src path="${src.interfaces}"/>
<classpath refid="project.class.path"/>
</javac>
<!-- copy all image & sound files from src to the build directory -->
2006-12-02 00:14:01 +07:00
<copy todir="${build.dir}">
<fileset dir="${src}">
<include name="**/images/*"/>
<include name="**/*.gif"/>
<include name="**/*.jpg"/>
<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 dbPort.jar file -->
<jar jarfile="${dist.dir}/dbPort.jar" basedir="${build.dir}"/>
</target>
<target name="clean">
<!-- Delete the ${build.dir} directory trees -->
<delete dir="${build.dir}"/>
2006-11-17 10:07:23 +07:00
<delete file="${dist.dir}/dbPort.jar" failonerror="false"/>
</target>
2006-12-02 00:14:01 +07:00
</project>