-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
70 lines (60 loc) · 2.04 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
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="compile" name="JKCEMU">
<property name="build" location="${basedir}/build"/>
<property name="javadoc" location="${basedir}/javadoc"/>
<property name="source" location="${basedir}/src"/>
<property name="disks" location="${source}/disks"/>
<property name="help" location="${source}/help"/>
<property name="images" location="${source}/images"/>
<property name="rom" location="${source}/rom"/>
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${javadoc}"/>
<delete file="${basedir}/jkcemu.jar"/>
</target>
<target name="init">
<mkdir dir="${build}"/>
<copy todir="${build}/disks">
<fileset dir="${disks}"/>
</copy>
<copy todir="${build}/help">
<fileset dir="${help}"/>
</copy>
<copy todir="${build}/images">
<fileset dir="${images}"/>
</copy>
<copy todir="${build}/rom">
<fileset dir="${rom}"/>
</copy>
</target>
<target name="compile" depends="init">
<javac srcdir="${source}" destdir="${build}" debug="on"/>
</target>
<target name="jar" depends="compile">
<jar destfile="${basedir}/jkcemu.jar" basedir="${build}" manifest="${source}/Manifest.txt">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="jkcemu.Main"/>
</manifest>
</jar>
</target>
<target name="javadoc" depends="compile">
<mkdir dir="${javadoc}"/>
<javadoc packagenames="*" destdir="${javadoc}"
use="false" version="true" author="true" verbose="true">
<fileset dir="${source}">
<include name="**/*.java"/>
</fileset>
</javadoc>
</target>
<target name="jkcemu" depends="compile">
<java classname="jkcemu.Main" fork="true">
<classpath>
<pathelement path="${build}"/>
</classpath>
</java>
</target>
</project>