-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
57 lines (47 loc) · 1.56 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
<project name="inyourface" default="default" basedir=".">
<property name="build.dir" value="build" />
<property name="lib.dir" value="lib" />
<property name="src.dir" value="src" />
<property name="javadoc.dir" value="javadoc" />
<target name="default" depends="compile, build-jar, clean" />
<target name="compile">
<sequential>
<mkdir dir="${build.dir}" />
<javac srcdir="${src.dir}" destdir="${build.dir}" debug="on" optimize="on" deprecation="on">
<compilerarg value="-Xlint" />
<classpath>
<pathelement location="lib/jdeserialize-patched.jar"/>
<pathelement location="lib/jcommander-1.30.jar"/>
</classpath>
</javac>
</sequential>
</target>
<target name="build-jar">
<delete dir="dist"/>
<mkdir dir="dist"/>
<mkdir dir="dist/bin"/>
<mkdir dir="dist/lib"/>
<copy todir="dist/bin">
<fileset dir="src/bash"/>
</copy>
<chmod file="dist/bin/inyourface.sh" perm="ugo+rx"/>
<copy todir="dist/lib">
<fileset dir="lib"/>
</copy>
<jar jarfile="dist/bin/${ant.project.name}.jar" basedir="build"/>
</target>
<target name="javadoc">
<sequential>
<mkdir dir="${build.dir}" />
<javadoc packagenames="com.synacktiv.*"
sourcepath="${src.dir}"
destdir="${javadoc.dir}"
use="true">
<fileset dir="." includes="${src.dir}/**/*" />
</javadoc>
</sequential>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
</project>