This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
56 lines (43 loc) · 2.16 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
<project name ="ProjetBDD">
<!--Allows to create the file .class of method command-->
<target name="build">
<mkdir dir="compile"/>
<javac srcdir="code/" destdir="compile" encoding="utf8" classpath=".:compile:lib/sqlite-jdbc-3.27.2.1.jar:lib/jfxrt.jar:lib/junit-4.12.jar">
</javac>
</target>
<!--Allows remove the repertory with .class-->
<target name="clean">
<delete dir ="compile"/>
<delete dir ="compileTest"/>
</target>
<!--Allows to run the application, after build-->
<target name="run" depends="build">
<java classname="be.ac.umons.projetBDD.ChooseMain" classpath=".:compile:lib/sqlite-jdbc-3.27.2.1.jar:lib/jfxrt.jar"/>
</target>
<!--This quiet target allows to build and run the code of command terminal-->
<target name="cmd">
<delete dir ="compile"/>
<mkdir dir="compile"/>
<javac srcdir="code/src" destdir="compile" encoding="utf8" classpath=".:compile:lib/sqlite-jdbc-3.27.2.1.jar:lib/jfxrt.jar">
</javac>
<java classname="be.ac.umons.projetBDD.Main" classpath=".:compile:lib/sqlite-jdbc-3.27.2.1.jar"/>
</target>
<!--This quiet target allows to build and run the GUI application-->
<target name="gui">
<delete dir ="compile"/>
<mkdir dir="compile"/>
<javac srcdir="code/src" destdir="compile" encoding="utf8" classpath=".:compile:lib/sqlite-jdbc-3.27.2.1.jar"/>
<javac srcdir="code/GUI" destdir="compile" encoding="utf8" classpath=".:compile:lib/jfxrt.jar"/>
<java classname="be.ac.umons.projetBDD.GUI.MainGui" classpath=".:compile:lib/sqlite-jdbc-3.27.2.1.jar:lib/jfxrt.jar" output="/dev/null"/>
</target>
<!--This target allows to run the test with Junit4-->
<target name="test" depends="build">
<delete dir="compileTest"/>
<mkdir dir="compileTest"/>
<javac srcdir="code/src" destdir="compileTest" encoding="utf8" classpath=".:lib/sqlite-jdbc-3.27.2.1.jar"/>
<javac srcdir="code/test" destdir="compileTest" encoding="utf8" classpath=".:lib/junit-4.12.jar"/>
<java classname="org.junit.runner.JUnitCore" classpath=".:compileTest:lib/sqlite-jdbc-3.27.2.1.jar:lib/junit-4.12.jar:lib/hamcrest-core-1.3.jar">
<arg value="be.ac.umons.projetBDD.TestJunit"/>
</java>
</target>
</project>