-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
44 lines (38 loc) · 1.28 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="jar">
<property name="src.dir" value="${basedir}/src" />
<property name="lib.dir" value="${basedir}/libs" />
<property name="build.dir" value="${basedir}/deploy" />
<property name="jar.name" value="dynamobi-network.jar" />
<path id="classpath">
<fileset file="${lib.dir}/*.jar" />
</path>
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="build">
<mkdir dir="${build.dir}/classes" />
<!-- hack to package all classes up together -->
<unjar dest="${build.dir}/classes">
<fileset excludes="farrago.jar" file="${lib.dir}/*.jar" />
</unjar>
<javac srcdir="${src.dir}" destdir="${build.dir}/classes"
includeantruntime="false"
classpathref="classpath"
debug="true"/>
</target>
<target name="jar" depends="build">
<copy file="initsql/deploy.txt" todir="${build.dir}/classes" />
<jar destfile="${build.dir}/${jar.name}">
<manifest>
<!-- necessary for LucidDB -->
<section name="deploy.txt">
<attribute name="SQLJDeploymentDescriptor" value="TRUE" />
</section>
</manifest>
<fileset dir="${build.dir}/classes">
<include name="**/*" />
</fileset>
</jar>
</target>
</project>