forked from fraktalsyndrom/AAAH-SNAYKUU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
72 lines (60 loc) · 2.61 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="Snaykuu" default="compile">
<property name="jar" value="snaykuu.jar" />
<property name="bin" value="classes" />
<property name="src" value="src" />
<property name="bot" value="bot" />
<property name="img" value="img" />
<property name="doc" value="doc" />
<property name="encoding" value="utf-8" />
<target name="clean" description="remove intermediate files">
<delete dir="${bin}" />
</target>
<target name="clobber" depends="clean" description="remove all artifact files">
<delete file="${jar}" />
</target>
<target name="compile" depends="clobber" description="compile the Java source code to class files">
<mkdir dir="${bin}" />
<javac srcdir="${src}" destdir="${bin}" encoding="${encoding}" includeantruntime="false"/>
</target>
<target name="jar" depends="compile" description="create a Jar file for the application">
<jar destfile="${jar}">
<fileset dir="${bin}" includes="**/*.class" />
<fileset dir="." includes="${img}/*" />
<manifest>
<attribute name="Main-Class" value="Main" />
</manifest>
</jar>
</target>
<target name="sjar" depends="jar" description="create a Jar file for the application, including source">
<jar destfile="${jar}" update="true">
<fileset dir="." includes="${src}/**/*.java" />
<fileset dir="." includes="manual.txt" />
</jar>
</target>
<target name="bot" description="compile every custom bots">
<javac srcdir="${bot}" classpath="${bin}" sourcepath="${src}" encoding="${encoding}" includeantruntime="false"/>
</target>
<target name="run" description="execute the Jar file">
<java jar="${jar}" fork="true"/>
</target>
<target name="doc" description="run the javadoc tool">
<javadoc destdir="${doc}" access="public" author="true" version="true" use="true" windowtitle="SNAYKUU API">
<fileset dir="${src}/gameLogic" defaultexcludes="no">
<include name="*.java" />
<exclude name="RecordedGame.java" />
<exclude name="GameResult.java" />
<exclude name="Session.java" />
<exclude name="Game.java" />
<exclude name="Frame.java" />
</fileset>
</javadoc>
</target>
<target name="crun" depends="jar" description="compile, jar and run">
<java jar="${jar}" fork="true"/>
</target>
<target name="scrun" depends="sjar" description="compile, jar with source and run">
<java jar="${sjar}" fork="true"/>
</target>
<target name="all" depends="doc,bot,crun" description="recompile everything (javadoc, bots and app) and run"/>
</project>