-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
30 lines (26 loc) · 909 Bytes
/
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
<project name="rocksdb-jna" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<path id="lib-classpath">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<target name="compile" depends="clean" description="compile the source " >
<mkdir dir="${dist}"/>
<javac srcdir="${src}" destdir="${dist}">
<classpath refid="lib-classpath" />
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/rocksdb-jna.jar" basedir="${dist}">
<zipgroupfileset dir="lib" includes="*.jar"/>
</jar>
</target>
<target name="clean" description="clean up" >
<delete dir="${dist}"/>
</target>
</project>