forked from mcgregorandrew/babq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·76 lines (66 loc) · 3.37 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<project name="BABQ" default="dist" basedir=".">
<description>
BABQ Build Script
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="build.compiler" value="javac1.5"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<copy file="${src}/resources/ageSummary.xls" tofile="${build}/resources/ageSummary.xls"/>
<copy file="${src}/resources/billingSummary.xls" tofile="${build}/resources/billingSummary.xls"/>
<copy file="${src}/resources/qcBillingTemplate.xls" tofile="${build}/resources/qcBillingTemplate.xls"/>
<copy file="${src}/resources/roleSummary.xls" tofile="${build}/resources/roleSummary.xls"/>
<copy file="${src}/resources/teamSummary.xls" tofile="${build}/resources/teamSummary.xls"/>
<copy file="${src}/resources/excludedBillingCodes.csv" tofile="${build}/resources/excludedBillingCodes.csv"/>
<copy file="${src}/resources/providerSummary.xls" tofile="${build}/resources/providerSummary.xls"/>
<copy file="${src}/resources/Money.png" tofile="${build}/resources/Money.png"/>
<javac srcdir="${src}" destdir="${build}" debug="true">
<classpath>
<pathelement location="3rdParty/h2.jar"/>
<pathelement location="3rdParty/mysql-connector-java-bin.jar"/>
<pathelement location="3rdParty/poi-3.0.2-FINAL-20080204.jar"/>
<pathelement location="3rdParty/poi-contrib-3.0.2-FINAL-20080204.jar"/>
<pathelement location="3rdParty/poi-scratchpad-3.0.2-FINAL-20080204.jar"/>
<pathelement location="3rdParty/swing-worker-1.1.jar"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<mkdir dir="${dist}/bin"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<unjar src="3rdParty/h2.jar" dest="${build}"/>
<unjar src="3rdParty/mysql-connector-java-bin.jar" dest="${build}"/>
<unjar src="3rdParty/poi-3.0.2-FINAL-20080204.jar" dest="${build}"/>
<unjar src="3rdParty/poi-contrib-3.0.2-FINAL-20080204.jar" dest="${build}"/>
<unjar src="3rdParty/poi-scratchpad-3.0.2-FINAL-20080204.jar" dest="${build}"/>
<unjar src="3rdParty/swing-worker-1.1.jar" dest="${build}"/>
<jar jarfile="${dist}/lib/babq.jar" basedir="${build}"/>
<exec osfamily="windows" executable="c:\Program Files\JSmooth 0.9.9-7\jsmoothcmd.exe">
<arg value="babq.jsmooth"/>
</exec>
<zip destfile="${dist}/BABQ.zip" basedir="${dist}/bin"/>
<exec osfamily="windows" executable="c:\Program Files\JSmooth 0.9.9-7\jsmoothcmd.exe">
<arg value="babq-d.jsmooth"/>
</exec>
<zip destfile="${dist}/BABQ-d.zip" basedir="${dist}/bin"/>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>