2007-11-23 20:21:08 +07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- ======================================================== -->
|
2008-07-15 03:45:57 +07:00
|
|
|
<!-- Zk Ajax UI (Web UI) -->
|
2007-11-23 20:21:08 +07:00
|
|
|
<!-- ======================================================== -->
|
2007-11-22 18:30:42 +07:00
|
|
|
|
2008-07-10 13:02:37 +07:00
|
|
|
<project name="ZkWebUI" default="war" basedir=".">
|
2007-11-22 18:30:42 +07:00
|
|
|
<description>
|
2008-07-10 13:02:37 +07:00
|
|
|
This buildfile is used to build the Zk WebUI client.
|
2007-11-22 18:30:42 +07:00
|
|
|
</description>
|
|
|
|
<!-- set global properties for this build -->
|
|
|
|
<!--<property environment="env"/>-->
|
|
|
|
<property name="src.dir" value="${basedir}/WEB-INF/src"/>
|
|
|
|
<property name="classes.dir" value="${basedir}/WEB-INF/classes"/>
|
|
|
|
<property name="dist.dir" value="${basedir}/dist"/>
|
|
|
|
<property name="WEBINF.dir" value="${basedir}/WEB-INF"/>
|
2008-07-10 13:02:37 +07:00
|
|
|
<property name="Adempiere.dir" value="${basedir}/../lib"></property>
|
2007-11-22 18:30:42 +07:00
|
|
|
|
|
|
|
<property name="war.name" value="webui"/>
|
|
|
|
<property name="compile.debug" value="true"/>
|
|
|
|
<property name="compile.deprecation" value="false"/>
|
|
|
|
<property name="compile.optimize" value="true"/>
|
|
|
|
|
|
|
|
<path id="compile.classpath">
|
|
|
|
<pathelement location="${basedir}"/>
|
|
|
|
<pathelement location="${basedir}/WEB-INF/classes"/>
|
|
|
|
<pathelement location="${basedir}/WEB-INF/src"/>
|
2009-05-15 06:33:42 +07:00
|
|
|
|
2008-07-09 22:00:21 +07:00
|
|
|
<pathelement location="${Adempiere.dir}/../base/build"/>
|
|
|
|
<pathelement location="${Adempiere.dir}/../client/build"/>
|
|
|
|
<pathelement location="${Adempiere.dir}/../JasperReports/build"/>
|
2007-11-22 18:30:42 +07:00
|
|
|
<fileset dir="${Adempiere.dir}">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
2009-05-15 06:33:42 +07:00
|
|
|
|
2008-07-09 22:00:21 +07:00
|
|
|
<pathelement location="${Adempiere.dir}/../tools/lib/servlet-api.jar"/>
|
2007-11-22 18:30:42 +07:00
|
|
|
<fileset dir="${basedir}/WEB-INF/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="clean" description="delete class directory">
|
|
|
|
<delete dir="${classes.dir}/org" />
|
2008-02-04 15:00:20 +07:00
|
|
|
<delete dir="${dist.dir}" />
|
2007-11-22 18:30:42 +07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="clean" description="Compile Java sources">
|
|
|
|
<mkdir dir="${classes.dir}"/>
|
2009-08-17 16:23:03 +07:00
|
|
|
<javac target="1.5"
|
|
|
|
srcdir="WEB-INF/src"
|
2007-11-22 18:30:42 +07:00
|
|
|
destdir="${classes.dir}"
|
|
|
|
debug="${compile.debug}"
|
|
|
|
deprecation="${compile.deprecation}"
|
|
|
|
optimize="${compile.optimize}">
|
|
|
|
<classpath refid="compile.classpath"/>
|
|
|
|
</javac>
|
2009-05-16 01:35:15 +07:00
|
|
|
<copy todir="${classes.dir}" overwrite="true">
|
2009-05-15 06:33:42 +07:00
|
|
|
<fileset dir="WEB-INF/src">
|
2009-05-16 01:35:15 +07:00
|
|
|
<include name="**/*.xml" />
|
2009-05-15 06:33:42 +07:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2007-11-22 18:30:42 +07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="war" depends="compile">
|
2008-07-15 03:45:57 +07:00
|
|
|
<echo message="=========== Build Zk Ajax UI ==========="/>
|
2007-11-22 18:30:42 +07:00
|
|
|
<delete dir="${dist.dir}" />
|
2009-05-15 06:33:42 +07:00
|
|
|
|
2007-11-22 18:30:42 +07:00
|
|
|
<mkdir dir="${dist.dir}"/>
|
2009-05-15 06:33:42 +07:00
|
|
|
|
2007-11-22 18:30:42 +07:00
|
|
|
<war
|
|
|
|
warfile="${dist.dir}/${war.name}.war"
|
|
|
|
webxml="${WEBINF.dir}/web.xml">
|
|
|
|
<fileset dir="${basedir}" excludes="
|
|
|
|
.settings/**,
|
|
|
|
bin/**,
|
|
|
|
dist/**,
|
|
|
|
.*,
|
|
|
|
work/**,
|
|
|
|
WEB-INF/src/**,
|
|
|
|
**/web.xml,
|
|
|
|
**/test/**,
|
|
|
|
lib/*-sources.jar,
|
|
|
|
**/test.zul"
|
|
|
|
>
|
|
|
|
|
|
|
|
</fileset>
|
|
|
|
</war>
|
2009-05-15 06:33:42 +07:00
|
|
|
|
2008-07-10 13:02:37 +07:00
|
|
|
<copy file="${dist.dir}/${war.name}.war" tofile="../lib/${war.name}.war"/>
|
2007-11-22 18:30:42 +07:00
|
|
|
</target>
|
2008-12-08 23:32:44 +07:00
|
|
|
</project>
|