-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
58 lines (49 loc) · 1.7 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- author=Kevin Taron
date=01.12.2013
-->
<project basedir="." default="MainTasks" name="code-kata">
<!-- Erstellt Ordnervariablen-->
<property name="sourceOrdner" location="src" />
<property name="buildOrdner" location="run" />
<property name="docsdOrdner" location="docs" />
<!-- Ordner aufraeumen-->
<target name="clean">
<delete dir="${buildOrdner}" />
<delete dir="${docsdOrdner}" />
</target>
<!-- Ordner erstellen -->
<target name="createOrdner">
<mkdir dir="${buildOrdner}" />
<mkdir dir="${docsdOrdner}" />
</target>
<!-- Projekt compilieren -->
<target name="compile" depends="clean, createOrdner">
<javac srcdir="${sourceOrdner}" destdir="${buildOrdner}">
</javac>
</target>
<!-- Dokumentation erstellen -->
<target name="docs" depends="compile">
<javadoc packagenames="src" sourcepath="${sourceOrdner}" destdir="${docsdOrdner}">
<fileset dir="${sourceOrdner}">
<include name="**" />
</fileset>
</javadoc>
</target>
<!-- Projekt ausfuehren -->
<target name="run" depends="jar">
<java classname="TicTacToe" classpath="${buildOrdner}\tictactoe.jar" fork="true" />
</target>
<!-- JAR File erstellen -->
<target name="jar" depends="compile">
<jar destfile="${buildOrdner}\tictactoe.jar" basedir="${buildOrdner}" includes="**/*.class">
<manifest>
<attribute name="Main-Class" value="taronkevin.TicTacToe" />
</manifest>
</jar>
</target>
<!-- Alle Aufgaben ausfuehren -->
<target name="MainTasks" depends="compile, docs, jar, run">
<description>Behandelt die Hauptaufgaben</description>
</target>
</project>