-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
77 lines (62 loc) · 2.37 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="IJA" basedir="." default="main">
<property name="src.dir" value="src/main/java/ija/projekt"/>
<property name="build.dir" value="build"/>
<property name="doc.dir" value="doc"/>
<property name="dest-client.dir" value="dest"/>
<property name="res.dir" location="src/main/resources"/>
<property name="main-class" value="Main"/>
<!--<path id="path.test">-->
<!--<pathelement location="lib/junit-4.12.jar" />-->
<!--<pathelement location="lib/hamcrest-core-1.3.jar"/>-->
<!--<pathelement location="${build.main.dir}"/>-->
<!--</path>-->
<path id="library.gradle:_com.google.code.gson:gson:2.8.6.classpath">
<pathelement location="${basedir}/../../../../.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.6/9180733b7df8542621dc12e21e87557e8c99b8cb/gson-2.8.6.jar"/>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<dirset dir="${basedir}/src/main">
<include name="java"/>
<include name="resources"/>
</dirset>
<target name="clean-doc">
<delete dir="${doc.dir}"/>
</target>
<path id="ija-projekt.main.module.sourcepath">
<dirset dir="${basedir}/src/main">
<include name="java"/>
<include name="resources"/>
</dirset>
</path>
<target name="compile-classes" depends="clean">
<mkdir dir="${build.dir}"/>
<javac destdir="${build.dir}" debug="true" includeantruntime="false">
<src refid="ija-projekt.main.module.sourcepath"/>
<classpath refid="classpath.test"/>
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.dir}" includes="**/*.fxml"/>
<fileset dir="${src.dir}" includes="**/*.css"/>
<fileset dir="lib" includes="**/*.png"/>
</copy>
</target>
<path id="classpath.test">
<pathelement location="lib/gson-2.8.6.jar"/>
</path>
<target name="compile" depends="compile-classes">
<mkdir dir="${dest-client.dir}"/>
<jar destfile="${dest-client.dir}/ija-projekt.jar" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="ija.projekt.Main"/>
</manifest>
<zipgroupfileset dir="${basedir}/lib" includes="**/*.jar"/>
<fileset dir="${res.dir}"/>
</jar>
</target>
<target name="run" depends="compile">
<java jar="${dest-client.dir}/ija-projekt.jar" fork="true"/>
</target>
<target name="clean-build" depends="clean,compile"/>
<target name="main" depends="clean,run"/>
</project>