-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
77 lines (65 loc) · 2.56 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
73
74
75
76
77
<project name="game" default="compile" basedir=".">
<description>
Fichier de construction pour le projet "Lemmings" de CPS
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="jars" location="jars"/>
<property name="nom1" value="LAUSSAUZAY"/>
<property name="nom2" value="NEA"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac debug="true" classpath="${jars}/junit.jar" srcdir="${src}" excludes="" destdir="${build}" includeantruntime="false" />
</target>
<target name="run1" depends="compile"
description="run application without contract">
<echo>================ Run Object Main ================</echo>
<java classname="game.main.MainWithoutContract"
classpath="${build}" fork="true">
</java>
</target>
<target name="run2" depends="compile"
description="run application with contract">
<echo>================ Run Object Main ================</echo>
<java classname="game.main.MainWithContract"
classpath="${build}" fork="true">
</java>
</target>
<target name="test" depends="compile"
description="Run tests for Level">
<echo>================ Run first test ================</echo>
<junit printsummary="yes">
<classpath>
<pathelement location="${build}"/>
<pathelement location="${jars}/junit.jar"/>
</classpath>
<formatter type="plain"/>
<test name="game.tests.LevelTest" outfile="reportTest"/>
</junit>
</target>
<target name="dist" depends="init,clean"
description="Generer la distribution" >
<!-- tout mettre dans l'archive -->
<jar basedir=".." jarfile="../Lemmings-${nom1}-${nom2}-${DSTAMP}.jar"
includes="Lemmings/**/*" excludes="**/CVS"/>
</target>
<target name="clean"
description="clean up" >
<echo>================ Removing temporary files... ================</echo>
<delete verbose="true"> <!-- Remove all *~ files -->
<fileset dir="${basedir}" defaultexcludes="no">
<include name="**/*~"/>
</fileset>
</delete>
<echo>================ Removing build directory ================</echo>
<delete dir="${build}"/>
</target>
</project>