-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
101 lines (85 loc) · 3.06 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<project name="Animal Shelter Manager" default="build" basedir=".">
<description>Animal Shelter Manager build script</description>
<!-- TARGET: init
Initialisation
-->
<target name="init">
<tstamp/>
<!-- Make sure class output folder is there -->
<mkdir dir="bin"/>
<mkdir dir="bin/asmswing"/>
<!-- Make sure jar output folder is there -->
<mkdir dir="build" />
</target>
<!-- TARGET: clean
Removes temporary directories made during build.
-->
<target name="clean" description="clean up">
<!-- Delete the built classes folder -->
<delete dir="bin"/>
</target>
<!-- TARGET: compile
Compiles ASM itself
-->
<target name="compile" depends="init" description="compile ASM">
<!-- Compile from src to bin -->
<javac srcdir="src"
destdir="bin/asmswing"
deprecation="on"
nowarn="on"
debug="on"
source="5"
target="5"
includeAntRuntime="false"
verbose="off">
<compilerarg value="-Xlint:unchecked"/>
<classpath>
<path location="lib/hsqldb.jar"/>
<path location="lib/charting-0.94.jar"/>
<path location="lib/edtftpj.jar"/>
<path location="lib/rowset.jar"/>
</classpath>
</javac>
</target>
<!-- TARGET: build
Generates the asm.jar file of compiled classes.
-->
<target name="build" depends="compile" description="Generate asm.jar">
<!-- Copy the image resources across from the source -->
<copy todir="bin/asmswing/net/sourceforge/sheltermanager/asm/ui/res">
<fileset dir="src/net/sourceforge/sheltermanager/asm/ui/res"/>
</copy>
<!-- Copy the user locales across from the base -->
<copy todir="bin/asmswing/locale">
<fileset dir="src/locale">
<include name="*.properties" />
</fileset>
</copy>
<!-- Copy the sql files from the base -->
<copy todir="bin/asmswing/sql">
<fileset dir="sql">
<include name="*.sql" />
</fileset>
</copy>
<!-- Copy the media files from the base -->
<copy todir="bin/asmswing/media">
<fileset dir="media">
<include name="**/*.png" />
<include name="**/*.dat" />
<include name="**/*.html" />
<include name="**/*.odt" />
<include name="**/*.docx" />
<include name="**/*.abw" />
<include name="**/*.rtf" />
<include name="**/*.jpg" />
</fileset>
</copy>
<!-- Build the asm.jar file from asmswing -->
<jar jarfile="build/asm.jar" basedir="bin/asmswing">
<manifest>
<attribute name="Main-Class"
value="net.sourceforge.sheltermanager.asm.startup.Startup"/>
</manifest>
</jar>
</target>
</project>