2006-11-17 10:05:56 +07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<!-- ============================================= -->
|
|
|
|
<!-- Client -->
|
|
|
|
<!-- ============================================= -->
|
|
|
|
<!-- $Header: /cvs/adempiere/client/build.xml,v 1.2 2006/06/10 21:57:27 jjanke Exp $ -->
|
|
|
|
|
|
|
|
<project name="client" default="clientDistribute" basedir=".">
|
|
|
|
|
|
|
|
<description>
|
|
|
|
This buildfile is used to build the client 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="../lib"/>
|
|
|
|
<property name="jar.path" value="../lib"/>
|
2007-01-30 16:06:53 +07:00
|
|
|
<!--<property environment="env"/>-->
|
2007-01-30 17:13:17 +07:00
|
|
|
<import file="../utils_dev/properties.xml"/>
|
2006-11-17 10:05:56 +07:00
|
|
|
|
|
|
|
<!-- set path to include the necessary jar files for javac -->
|
|
|
|
<path id="project.class.path">
|
|
|
|
<pathelement path="${classpath}"/>
|
|
|
|
<pathelement path="${jar.path}/CCTools.jar"/>
|
|
|
|
<pathelement path="../base/Base.jar"/>
|
|
|
|
<pathelement path="../print/Print.jar"/>
|
|
|
|
<pathelement path="../dbPort/dbPort.jar"/>
|
2007-02-16 05:06:48 +07:00
|
|
|
<pathelement path="../lib/freepdf.jar"/>
|
2006-12-30 14:53:36 +07:00
|
|
|
<pathelement path="../lib/customization.jar"/>
|
|
|
|
<pathelement path="../lib/patches.jar"/>
|
2006-11-17 10:05:56 +07:00
|
|
|
<pathelement path="../lib/jcommon-1.0.5.jar"/>
|
|
|
|
<pathelement path="../lib/jfreechart-1.0.2.jar"/>
|
|
|
|
<pathelement path="../looks/CLooks.jar"/>
|
|
|
|
<pathelement path="../extend/Extend.jar"/>
|
|
|
|
<pathelement path="../interfaces/Interfaces.jar"/>
|
|
|
|
<pathelement path="../tools/lib/j2ee.jar"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="clientInit" description="initialization target">
|
|
|
|
<echo message="=========== Build Client"/>
|
|
|
|
<!-- 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"/>
|
|
|
|
|
|
|
|
<uptodate property="jar.uptodate"
|
|
|
|
targetfile="${dist.dir}/${jar.name}.jar">
|
|
|
|
<srcfiles dir="${src}" includes="**/*.java"/>
|
|
|
|
<srcfiles dir="..\base" includes="Base.jar"/>
|
|
|
|
<srcfiles dir="..\dbPort" includes="dbPort.jar"/>
|
|
|
|
<srcfiles dir="..\looks" includes="CLooks.jar"/>
|
|
|
|
<srcfiles dir="..\print" includes="Print.jar"/>
|
|
|
|
<srcfiles dir="..\extend" includes="Extend.jar"/>
|
|
|
|
<srcfiles dir="..\interfaces" includes="Interfaces.jar"/>
|
|
|
|
</uptodate>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clientMakedir" depends="clientInit" unless="dist.dir.exists">
|
|
|
|
<!-- create the distribution directory if not available -->
|
|
|
|
<mkdir dir="${dist.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- =========================================== -->
|
|
|
|
<!-- Compile -->
|
|
|
|
<!-- =========================================== -->
|
|
|
|
<target name="clientCompile" depends="clientMakedir">
|
|
|
|
<!-- compile the java code from ${src} into ${build.dir} -->
|
|
|
|
<javac srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
|
|
|
|
<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"/>
|
|
|
|
<include name="**/*.wav"/>
|
|
|
|
<include name="**/*.htm"/>
|
|
|
|
<include name="**/*.html"/>
|
|
|
|
<include name="**/*.properties"/>
|
|
|
|
<exclude name="**/package.html"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- =========================================== -->
|
|
|
|
<!-- Distribution -->
|
|
|
|
<!-- =========================================== -->
|
|
|
|
<target name="clientDistribute" depends="clientCompile" unless="jar.uptodate">
|
|
|
|
<!-- get included jars -->
|
2007-02-12 17:26:42 +07:00
|
|
|
<!--
|
|
|
|
<unjar src="..\base\Base.jar" dest="${build.dir}" overwrite="true"/>
|
|
|
|
<unjar src="..\dbPort\dbPort.jar" dest="${build.dir}" overwrite="true"/>
|
|
|
|
<unjar src="..\looks\CLooks.jar" dest="${build.dir}" overwrite="true"/>
|
|
|
|
<unjar src="..\print\Print.jar" dest="${build.dir}" overwrite="true"/>
|
|
|
|
<unjar src="..\extend\Extend.jar" dest="${build.dir}" overwrite="true"/>
|
|
|
|
-->
|
2006-11-17 10:05:56 +07:00
|
|
|
<!-- <unjar src="..\interfaces\Interfaces.jar" dest="${build.dir}" /> -->
|
2007-02-12 17:26:42 +07:00
|
|
|
<!--
|
2007-01-20 02:32:14 +07:00
|
|
|
<unjar src="..\JasperReports\CompiereJasper.jar" dest="${build.dir}" />
|
2006-11-17 10:05:56 +07:00
|
|
|
<delete dir="${build.dir}/META-INF"/>
|
2007-02-12 17:26:42 +07:00
|
|
|
-->
|
|
|
|
|
2006-11-17 10:05:56 +07:00
|
|
|
<!-- put everything from ${build.dir} into Adempiere.jar file -->
|
|
|
|
<jar
|
|
|
|
jarfile="${dist.dir}/Adempiere.jar"
|
2007-02-12 17:26:42 +07:00
|
|
|
basedir="${build.dir}"
|
|
|
|
duplicate="preserve"
|
2006-11-17 10:05:56 +07:00
|
|
|
index="yes">
|
2007-02-12 17:26:42 +07:00
|
|
|
<fileset dir="../base/build" />
|
|
|
|
<fileset dir="../dbPort/build" />
|
|
|
|
<fileset dir="../looks/build" />
|
|
|
|
<fileset dir="../print/build" />
|
|
|
|
<fileset dir="../extend/build" />
|
2007-02-14 11:54:28 +07:00
|
|
|
<zipgroupfileset file="../JasperReports/CompiereJasper.jar"/>
|
|
|
|
<manifest>
|
2006-11-17 10:05:56 +07:00
|
|
|
<attribute name="Specification-Title" value="Adempiere"/>
|
|
|
|
<attribute name="Specification-Version" value="${env.ADEMPIERE_VERSION}"/>
|
|
|
|
<attribute name="Specification-Vendor" value="ADempiere"/>
|
|
|
|
<attribute name="Implementation-Title" value="Adempiere ${env.ADEMPIERE_VERSION}"/>
|
|
|
|
<attribute name="Implementation-Version" value="${env.ADEMPIERE_VERSION} ${DSTAMP}-${TSTAMP}"/>
|
|
|
|
<attribute name="Implementation-Vendor" value="${env.ADEMPIERE_VENDOR}"/>
|
|
|
|
<attribute name="Implementation-URL" value="http://www.adempiere.com"/>
|
|
|
|
<attribute name="Main-Class" value="org.compiere.Adempiere"/>
|
|
|
|
<attribute name="Class-Path" value="AdempiereSLib.jar"/>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
|
|
|
|
<!-- Sign Jar
|
|
|
|
signjar jar="${dist.dir}/Adempiere.jar"
|
|
|
|
alias="adempiere"
|
|
|
|
storepass="${password}"
|
|
|
|
keystore="../keystore/myKeystore" -->
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<!-- Delete the ${build.dir} directory trees -->
|
|
|
|
<delete dir="${build.dir}"/>
|
|
|
|
<delete file="${dist.dir}/Adempiere.jar" failonerror="false"/>
|
|
|
|
</target>
|
|
|
|
|
2007-02-16 05:06:48 +07:00
|
|
|
</project>
|