-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
72 lines (64 loc) · 2.84 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
71
72
<?xml version="1.0"?>
<project name="KawigiEdit" default="build" basedir=".">
<property name="contestapplet_file" value="${basedir}/../../ContestApplet.jar"/>
<property name="contestapplet_file_in_tags" value="${basedir}/../../../ContestApplet.jar"/>
<property name="build.compiler" value="javac1.5"/>
<property name="ant.build.javac.target" value="1.5"/>
<property name="ant.build.javac.source" value="1.5"/>
<property name="javadoc.locale" value="en_US"/>
<property name="debug" value="on"/>
<property name="verbose" value="no"/>
<property name="srcdir" value="."/>
<property name="docsdir" value="docs"/>
<property name="rcdir" value="rc"/>
<property name="metadir" value="META-INF"/>
<property name="builddir" value="build"/>
<property name="classesdir" value="${builddir}/classes"/>
<property name="packagedir" value="${builddir}/package"/>
<property name="manifest_file" value="${metadir}/MANIFEST.MF"/>
<property name="package_filename" value="KawigiEdit.jar"/>
<property name="package_file" value="${builddir}/${package_filename}"/>
<path id="build_classpath">
<pathelement location="${contestapplet_file}"/>
<pathelement location="${contestapplet_file_in_tags}"/>
</path>
<target name="build">
<mkdir dir="${classesdir}"/>
<javac srcdir="${srcdir}" destdir="${classesdir}" includes="**" debug="${debug}" verbose="${verbose}" includeAntRuntime="no">
<classpath refid="build_classpath"/>
</javac>
</target>
<target name="clean">
<delete dir="${builddir}"/>
</target>
<target name="javadoc" depends="build">
<mkdir dir="${docsdir}"/>
<javadoc packagenames="kawigi.*"
sourcepath="${srcdir}"
classpath="${classesdir}"
classpathref="build_classpath"
destdir="${docsdir}"
windowtitle="KawigiEdit"
locale="${javadoc.locale}"
verbose="${verbose}" />
</target>
<target name="package" depends="build, javadoc">
<mkdir dir="${packagedir}"/>
<copy todir="${packagedir}">
<fileset dir="${classesdir}">
<include name="**/*"/>
</fileset>
<fileset dir="${srcdir}">
<include name="kawigi/**/*"/>
</fileset>
<fileset dir="${basedir}">
<include name="${docsdir}/**/*"/>
<include name="${metadir}/**/*"/>
<include name="${rcdir}/**/*"/>
<include name="KawigiEdit.html"/>
</fileset>
</copy>
<jar jarfile="${package_file}" manifest="${manifest_file}" basedir="${packagedir}"/>
<delete dir="${packagedir}"/>
</target>
</project>