-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.xml
executable file
·83 lines (57 loc) · 2.21 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
<?xml version="1.0"?>
<project name="ExecuteQuery" default="make" basedir=".">
<property name="compile.outdir" value="classes" />
<property name="src.path" value="src" />
<property name="dist.outdir" value="." />
<property name="lib.dir" value="${dist.outdir}/lib" />
<property name="docs.dir" value="${dist.outdir}/docs" />
<property name="main.class" value="org.executequery.ExecuteQuery" />
<path id="classpath">
<pathelement location="${lib.dir}" />
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<path id="srcpath">
<pathelement location="${src.path}" />
</path>
<target name="init" description="Create required directories">
<tstamp />
<delete dir="${compile.outdir}" quiet="true"/>
<mkdir dir="${compile.outdir}" />
<copy todir="${compile.outdir}">
<fileset dir="${src.path}" excludes="**/*.java **/*.properties" />
</copy>
<native2ascii encoding="UTF-8" src="${src.path}"
dest="${compile.outdir}" includes="**/*.properties" ext=".properties" />
<copy file="${src.path}/org/executequery/release.notes" tofile="${dist.outdir}/README.txt"/>
</target>
<target name="compile" depends="init">
<javac destdir="${compile.outdir}" debug="on">
<classpath refid="classpath" />
<src refid="srcpath" />
<include name="org/**" />
</javac>
</target>
<target name="make" depends="jar">
</target>
<target name="jar" depends="compile" description="generate the jar file">
<manifestclasspath property="manifest.classpath"
jarfile="${dist.outdir}/eq.jar">
<classpath refid="classpath" />
</manifestclasspath>
<jar jarfile="${dist.outdir}/eq.jar"
basedir="${compile.outdir}"
compress="false" includes="org/**">
<manifest>
<attribute name="Main-Class" value="${main.class}" />
<attribute name="Class-Path" value="${manifest.classpath} docs/eqhelp.jar" />
</manifest>
</jar>
<delete dir="${compile.outdir}" quiet="true"/>
</target>
<target name="clean">
<delete dir="${compile.outdir}" quiet="true"/>
</target>
<target name="all" depends="compile,jar" />
</project>