-
Notifications
You must be signed in to change notification settings - Fork 4
/
build_ext.xml
70 lines (56 loc) · 2.21 KB
/
build_ext.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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="banner" basedir="." default="build.project">
<!-- project settings -->
<property name="src.dir" value="${basedir}/src"/>
<property name="temp.dir" value="${basedir}/temp"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="classes.dir" value="${temp.dir}/classes"/>
<property name="banner.jar" value="banner.jar"/>
<!-- javac properties -->
<property name="javacFailOnError" value="true"/>
<property name="javacVerbose" value="false"/>
<property name="javacSource" value="1.6"/>
<property name="javacTarget" value="1.6"/>
<!-- project classpath -->
<path id="banner.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- compile source files -->
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" source="${javacSource}" target="${javacTarget}" destdir="${classes.dir}" encoding="UTF8">
<classpath refid="banner.classpath"/>
<src path="${src.dir}"/>
</javac>
</target>
<!-- jar project -->
<target name="jar">
<jar destfile="${temp.dir}/${banner.jar}">
<fileset dir="${classes.dir}">
<include name="**/*.class"/>
</fileset>
<fileset dir="${src.dir}">
<include name="*.properties"/>
</fileset>
<!--<fileset dir="${basedir}/data"/>-->
</jar>
</target>
<!-- build project -->
<target name="build.project">
<echo message="Start BANNER project build"/>
<!-- clean any previous build -->
<delete dir="${temp.dir}"/>
<delete file="${lib.dir}/${banner.jar}"/>
<!-- compile project -->
<antcall target="compile"/>
<!-- jar project -->
<antcall target="jar"/>
<!-- copy banner.jar to lib -->
<copy file="${temp.dir}/${banner.jar}" todir="${lib.dir}"/>
<!-- clean up -->
<delete dir="${temp.dir}"/>
<echo message="End BANNER project build"/>
</target>
</project>