01 <project name="webapp" default="all" basedir=".">
02
03 <!-- set global properties for this build -->
04 <property environment="env"/>
05 <property file="../../medrec.properties"/>
06 <property name="build.compiler" value="${compiler}"/>
07
08 <property name="source" value="."/>
09 <property name="commonweb.build" value="${build.tmp}"/>
10
11 <!-- -->
12 <target name="all" depends="banner, build, jar"/>
13
14 <!-- -->
15 <target name="banner">
16 <!-- Create the time stamp -->
17 <tstamp/>
18 <echo message="#### S T A R T C O M M O N W E B A P P ####"/>
19 <mkdir dir="${commonweb.build}"/>
20 </target>
21
22 <target name="build">
23 <javac srcdir="${source}" destdir="${commonweb.build}"
24 includes="**/*.java"
25 classpath="${value.classpath};${log.classpath};${struts.classpath};${utils.classpath};${exceptions.classpath}"
26 deprecation="${deprecation}"
27 debug="${debug}" debugLevel="${debugLevel}"
28 />
29 </target>
30
31 <target name="jar">
32 <jar jarfile="${common.web.classpath}"
33 basedir="${commonweb.build}"
34 update="yes">
35 </jar>
36 <ant target="clean.build"/>
37 </target>
38
39 <target name="clean.build">
40 <delete dir="${commonweb.build}"/>
41 </target>
42
43 <target name="clean" depends="clean.build">
44 <delete dir="${commonweb.classpath}"/>
45 </target>
46
47 </project>
|