core-jgi/client/build.xml

127 lines
5.0 KiB
XML
Raw Normal View History

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"/>
<!--<property environment="env"/>-->
<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="../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="../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="..\looks" includes="CLooks.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} -->
<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">
<!-- 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"
basedir="${build.dir}"
duplicate="preserve"
2006-11-17 10:05:56 +07:00
index="yes">
<fileset dir="../base/build" />
<fileset dir="../looks/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>
<target name="clean">
<!-- Delete the ${build.dir} directory trees -->
<delete dir="${build.dir}"/>
<delete file="${dist.dir}/Adempiere.jar" failonerror="false"/>
</target>
</project>