forked from burp-hash/burp-hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
56 lines (49 loc) · 2.14 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
<project name="burp-hash build" basedir="." default="build.jar">
<property name="authors" value="Scott Johnson, Tim MalcomVetter, Matt South"/>
<property name="project.url" value="http://burp-hash.github.io/"/>
<property name="project.name" value="burp-hash"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="dist"/>
<property name="dist.jar" value="${dist.dir}/burp-hash.jar"/>
<property name="lib.dir" value="lib"/>
<property name="src.dir" value="src"/>
<property name="sqlite.jar" value="sqlite-jdbc-3.8.10.1.jar"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="*.jar"/>
</path>
<target name="init" description="Create Directories">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${lib.dir}"/>
<mkdir dir="${src.dir}"/>
</target>
<target name="clean" depends="init" description="Clean Build Dir">
<delete>
<fileset dir="${build.dir}"/>
</delete>
</target>
<target name="distclean" depends="clean" description="Remove Jar">
<delete>
<fileset dir="${dist.dir}"/>
</delete>
</target>
<target name="build" depends="clean" description="Build project">
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false" classpathref="classpath"/>
</target>
<target name="build.jar" depends="build" description="Build JAR file">
<delete>
<fileset dir="${dist.dir}"/>
</delete>
<copy file="LICENSE" tofile="${build.dir}/LICENSE"/>
<tstamp/>
<jar destfile="${dist.jar}" basedir="${build.dir}" level="9">
<zipfileset includes="**/*.class,**/*.dll,**/*.so,**/*.jnilib" src="${lib.dir}/${sqlite.jar}"/>
<manifest>
<attribute name="Build-Date" value="${TODAY}"/>
<attribute name="Authors" value="${authors}"/>
<attribute name="Project-URL" value="${project.url}"/>
<attribute name="Project-Name" value="${project.name}"/>
</manifest>
</jar>
</target>
</project>