-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
71 lines (56 loc) · 2 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
<project name="FileBinding" default="dist" basedir=".">
<property name="src.dir" location="src/filebinding" />
<property name="src.lib" location="lib"/>
<property name="dist.lib" location="dist" />
<property name="build.class" location="build/classes" />
<property name="dist.jar" location="${dist.lib}/file-binding.jar" />
<property name="build.debug" value="true" />
<property name="build.optimize" value="false" />
<property name="build.source" value="1.6" />
<property name="build.target" value="1.6" />
<path id="core.libs" description="GEC Core Lib jars">
<fileset dir="${src.lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="build.path" description="base path">
<pathelement path="${sun.boot.class.path}" />
<path refid="core.libs" />
</path>
<path id="dist.path" description="distribution path">
<path refid="build.path" />
<fileset dir="${dist.lib}" includes="**/*.jar" />
</path>
<target name="help">
<echo message="Targets are: clean, compile, javadoc, and dist" />
</target>
<target name="clean">
<delete dir="${build.class}" />
<!-- <delete dir="${dist.lib}" /> -->
</target>
<target name="init" depends="clean">
<mkdir dir="${build.class}" />
<!-- <mkdir dir="${dist.lib}" /> -->
</target>
<target name="compile" depends="init">
<echo>compiling sources ...</echo>
<javac source="${build.source}" target="${build.target}" destdir="${build.class}" optimize="${build.optimize}" debug="${build.debug}" includeantruntime="true">
<!--<compilerarg line="-Xlint:unchecked" /> -->
<src path="${src.dir}" />
<classpath refid="build.path" />
</javac>
<copy todir="${build.class}">
<fileset dir="${src.dir}">
<include name="**/*.gif"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
<include name="**/*.xml"/>
</fileset>
</copy>
</target>
<target name="dist" depends="compile">
<jar jarfile="${dist.jar}">
<fileset dir="${build.class}" />
</jar>
</target>
</project>