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"/>
|
2010-04-29 03:54:38 +07:00
|
|
|
<property name="jar.name" value="client.jar"/>
|
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"/>
|
2010-04-29 03:54:38 +07:00
|
|
|
<property name="equinox.target" value="../equinox-target"/>
|
|
|
|
<property name="bundle.name" value="org.adempiere.client"/>
|
|
|
|
<property name="bundle.version" value="0.0.0.2"/>
|
|
|
|
|
|
|
|
<path id="osgi.libs">
|
|
|
|
<fileset dir="${equinox.target}/plugins">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
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"/>
|
2010-04-29 03:54:38 +07:00
|
|
|
<path refid="osgi.libs"/>
|
2006-11-17 10:05:56 +07:00
|
|
|
<pathelement path="../base/Base.jar"/>
|
2006-12-30 14:53:36 +07:00
|
|
|
<pathelement path="../lib/customization.jar"/>
|
|
|
|
<pathelement path="../lib/patches.jar"/>
|
2010-06-14 15:53:32 +07:00
|
|
|
<pathelement path="../lib/jcommon-1.0.16.jar"/>
|
|
|
|
<pathelement path="../lib/jfreechart-1.0.13.jar"/>
|
2006-11-17 10:05:56 +07:00
|
|
|
<pathelement path="../extend/Extend.jar"/>
|
2007-10-09 00:09:48 +07:00
|
|
|
<pathelement path="../tools/lib/j2ee.jar"/>
|
|
|
|
<pathelement path="../tools/lib/swinglabs-0.8.0.jar"/>
|
2006-11-17 10:05:56 +07:00
|
|
|
</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="..\extend" includes="Extend.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} -->
|
2009-10-05 11:56:48 +07:00
|
|
|
<javac target="1.6" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
|
2006-11-17 10:05:56 +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"/>
|
|
|
|
<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">
|
2007-02-12 17:26:42 +07:00
|
|
|
|
2007-03-02 21:54:58 +07:00
|
|
|
<!-- Compile JasperReports classes because it is required when packaging client jar! -->
|
|
|
|
<ant inheritall="false" antfile="../JasperReports/build.xml" dir="../JasperReports"/>
|
|
|
|
|
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="../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>
|
|
|
|
</target>
|
2010-04-29 03:54:38 +07:00
|
|
|
|
|
|
|
<target name="plugin">
|
|
|
|
<buildPlugin workspaceDirectory=".."
|
|
|
|
projectName="client"
|
|
|
|
targetPlatformId="target.platform"
|
|
|
|
destination="${dist.dir}"
|
|
|
|
buildSourceJar="false" />
|
|
|
|
</target>
|
2006-11-17 10:05:56 +07:00
|
|
|
|
|
|
|
<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>
|