-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
62 lines (52 loc) · 2.27 KB
/
build.xml
File metadata and controls
62 lines (52 loc) · 2.27 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="algo-tries" default="dist" basedir=".">
<description>Builds, tests, and runs the project.</description>
<property name="src.java.dir" value="src/main/java" />
<property name="src.res.dir" value="src/main/resources" />
<property name="build.dir" value="build" />
<property name="dist.dir" value="dist" />
<property name="doc.dir" value="doc" />
<property name="javadoc.dir" value="${doc.dir}/javadoc" />
<property name="application" value="${dist.dir}/algo-tries.jar" />
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile" depends="clean">
<javac srcdir="${src.java.dir}" destdir="${build.dir}" debug="true" includeantruntime="false"/>
<copy todir="${build.dir}">
<fileset dir="${src.res.dir}" erroronmissingdir="false">
<include name="**/*"/>
</fileset>
</copy>
</target>
<target name="javadoc" depends="compile">
<delete dir="${javadoc.dir}" />
<mkdir dir="${javadoc.dir}" />
<javadoc destdir="${javadoc.dir}"
sourcepath="${src.java.dir}"
packagenames="com.visualizer.*"
author="true"
version="true"
use="true"
windowtitle="Visualisateur d'Algorithmes de Tri">
<doctitle><![CDATA[<h1>Documentation - Algo Tries</h1>]]></doctitle>
<bottom><![CDATA[<i>Créé par Florian Pépin</i>]]></bottom>
</javadoc>
</target>
<target name="dist" depends="compile">
<jar destfile="${application}">
<fileset dir="${build.dir}" />
<manifest>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Created-By" value="Florian Pépin, Tom David et Emilien Huron"/>
<attribute name="Main-Class" value="com.visualizer.Main"/>
</manifest>
</jar>
</target>
<target name="run" depends="dist">
<java jar="${application}" fork="true"/>
</target>
</project>