-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
31 lines (31 loc) · 1.04 KB
/
build.xml
File metadata and controls
31 lines (31 loc) · 1.04 KB
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
<project name="bptdb" default="all" basedir=".">
<property name="version" value="0.0.1"/>
<property name="lib.dir" value="."/>
<property name="lib.name" value="bptdb"/>
<!-- Build tasks -->
<!-- clean -->
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${lib.dir}" includes="*.jar, bin/, build/, dist/"/>
</delete>
</target>
<target name="init" depends="clean">
<mkdir dir="./bin/" />
</target>
<!-- compile -->
<target name="compile" depends="init">
<javac debug="on" srcdir="${lib.dir}/src/" destdir="${lib.dir}/bin/" />
</target>
<target name="package" depends="compile">
<jar destfile="${lib.dir}/${lib.name}.jar" basedir="${lib.dir}/bin" />
<jar destfile="${lib.dir}/${lib.name}-sources.jar" basedir="${lib.dir}/src" />
</target>
<target name="zip" depends="package">
<zip destfile="${lib.name}-${version}.zip">
<fileset dir="${lib.dir}" includes="*.jar" />
</zip>
</target>
<target name="all" depends="zip">
<antcall target="clean"/>
</target>
</project>