-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
63 lines (50 loc) · 1.95 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
<project name="Zen l'initié" default="jar" basedir=".">
<description>Zen l'initié</description>
<!-- variable creation -->
<property name="src" value="src"/>
<property name="jar" value="jar"/>
<property name="class" value="class"/>
<property name="data" value="data"/>
<property name="javadoc" value="javadoc"/>
<property name="saved" value="saved"/>
<property name="launcher" value="LaunchZen"/>
<!-- directory cleaner -->
<target name="clean">
<echo message="[+] Start cleaning of all directories"></echo>
<delete dir="${class}"/>
<delete dir="${jar}"/>
<delete dir="${javadoc}"/>
<echo message="[+] All directories was successfully cleaned"></echo>
</target>
<target name="init">
<echo message="[+] Initialisation"></echo>
<tstamp/>
<mkdir dir="${class}"/>
</target>
<!-- compilation -->
<target name="compile" depends="init">
<echo message="[+] Compilation of the source code"></echo>
<javac srcdir="${src}" destdir="${class}"/>
<echo message="[+] Compilation ended successfully"></echo>
</target>
<!-- javadoc generation -->
<target name="javadoc" depends="compile">
<echo message="[+] Creation of the JavaDoc"></echo>
<mkdir dir="${javadoc}"/>
<javadoc sourcepath="${src}" destdir="${javadoc}"/>
<echo message="[+] JavaDoc was successfully created"></echo>
</target>
<!-- JAR generation -->
<target name="jar" depends="javadoc">
<echo message="[+] Creation of the JAR file"></echo>
<mkdir dir="${jar}"/>
<mkdir dir="${jar}/${saved}"/>
<jar destfile="${jar}/Zen.jar" basedir="${class}">
<manifest>
<attribute name="Main-Class" value="${launcher}"/>
</manifest>
<fileset dir="${data}"/>
</jar>
<echo message="[+] JAR file was successfully created"></echo>
</target>
</project>