-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
67 lines (58 loc) · 2.05 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
58
59
60
61
62
63
64
65
66
67
<project name="jx86" default="jarfile">
<property name="version" value="1.0"/>
<!-- ============================================== -->
<!-- Build Commands -->
<!-- ============================================== -->
<target name="build">
<javac debug="true" debuglevel="vars,lines,source" source="1.6" includeantruntime="true" classpath="">
<src path="src"/>
<include name="*/**"/>
<exclude name="*/**/package-info.java"/>
</javac>
</target>
<!-- ============================================== -->
<!-- Documenation -->
<!-- ============================================== -->
<target name="doc">
<javadoc
destdir="docs/api"
author="true"
version="true"
use="true"
windowtitle="Jx86 API">
<doctitle><![CDATA[<h1>Jx86: a Java Library Bytecode Assembler / Disassembler (v${version})</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2013 David J. Pearce. All Rights Reserved.</i>]]></bottom>
<packageset dir="src">
<include name="jx86/**"/>
</packageset>
</javadoc>
</target>
<!-- ============================================== -->
<!-- Distribution -->
<!-- ============================================== -->
<target name="jarfile" depends="build">
<mkdir dir="lib"/>
<jar destfile="lib/jx86-v${version}.jar">
<fileset dir="src">
<include name="jx86/**/*.class"/>
</fileset>
</jar>
<echo message="============================================="/>
<echo message="BUILT: lib/jx86-${version}.jar"/>
<echo message="============================================="/>
</target>
<!-- ============================================== -->
<!-- Misc Commands -->
<!-- ============================================== -->
<target name="clean">
<delete includeEmptyDirs="true" failonerror="false">
<fileset file="*~"/>
<fileset dir="lib"/>
<fileset dir="dist"/>
<fileset dir="docs"/>
<fileset dir="tests">
<include name="**/*.class"/>
</fileset>
</delete>
</target>
</project>