-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
73 lines (65 loc) · 2.41 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
<?xml version="1.0" encoding="Windows-1250" ?>
<project name="ija-client" basedir="." default="run">
<property name="lib" value="lib"/>
<property name="src.dir" value="src"/>
<property name="test.src.dir" value="src/ija/ija2016/homework3/test"/>
<property name="dest.dir" value="dest-client"/>
<property name="build.dir.classes" value="build/main"/>
<property name="build.dir.tests" value="build/test"/>
<property name="jar.name" value="ija-client"/>
<property name="doc.dir" value="doc"/>
<property name="main-class" value="ija.ija2016.homework3.view.MainView"/>
<property name="resources.dir" value="build/main/ija/textures"/>
<property name="music.dir" value="build/main/ija/music"/>
<path id="libs">
<fileset dir="${lib}" includes="*.jar"/>
<pathelement location="${build.dir.classes}"/>
</path>
<path id="libs2">
<path refid="libs"/>
<pathelement location="${build.dir.tests}"/>
</path>
<target name="clean">
<delete dir="${dest.dir}"/>
<delete dir="${build.dir.classes}"/>
<delete dir="${build.dir.tests}"/>
<delete dir="build"/>
<delete dir="${doc.dir}"/>
</target>
<target name="doc" depends="clean">
<mkdir dir="${doc.dir}"/>
<javadoc sourcepath="${src.dir}" destdir="${doc.dir}" encoding="Windows-1250">
<classpath refid="libs"/>
</javadoc>
</target>
<target name="compile" depends="doc">
<mkdir dir="examples"/>
<mkdir dir="${build.dir.classes}"/>
<javac srcdir="${src.dir}" destdir="${build.dir.classes}" includeantruntime="false" encoding="Windows-1250">
<classpath refid="libs"/>
</javac>
<copy todir="build/main/ija/music">
<fileset dir="lib/music"
includes="**/*.wav" />
</copy>
<copy todir="build/main/ija/textures">
<fileset dir="lib/textures"
includes="**/*.png" />
</copy>
<mkdir dir="${dest.dir}"/>
<jar destfile="${dest.dir}/${jar.name}.jar" basedir="${build.dir.classes}" encoding="Windows-1250">
<manifest>
<attribute name="main-Class" value="${main-class}"/>
</manifest>
<fileset dir="${resources.dir}">
<include name="**/*.png" />
</fileset>
<fileset dir="${music.dir}">
<include name="**/*.wav" />
</fileset>
</jar>
</target>
<target name="run" depends="compile">
<java jar="${dest.dir}/${jar.name}.jar" fork="true"/>
</target>
</project>