-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (50 loc) · 1.72 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
<project name="gvgai" default="cleandist" basedir="D:\my documents\GitHub\MyGVGAI">
<property name="build.dir" value="." />
<property name="root.dir" value="." />
<property name="src.dir" value="${root.dir}/src/" />
<property name="sprites.dir" value="${root.dir}/sprites" />
<property name="classes.dir" value="${build.dir}/classes" />
<property name="dist.dir" value="${build.dir}/dist" />
<property file="remote.server.properties" />
<tstamp>
<format property="timestamp" pattern="dd-MM-yy_HHmmss" locale="en,UK" />
</tstamp>
<path id="class.path">
</path>
<!-- CLEAN -->
<target name="clean">
<echo message="Removing old directory strmctsure..." />
<delete dir="${classes.dir}">
</delete>
<delete dir="${dist.dir}">
</delete>
</target>
<target name="dist">
<jar destfile="${dist.dir}/gvgai.jar">
<fileset dir="${classes.dir}" />
<fileset dir="${root.dir}">
<include name="${sprites.dir}/**"/>
</fileset>
</jar>
</target>
<!-- MK DEPLOY DIR -->
<target name="makedirectories">
<mkdir dir="${classes.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile" depends="makedirectories">
<echo message="Compiling All sources ..." />
<javac includeantruntime="false" classpathref="class.path" debug="true" debuglevel="lines,vars,source" srcdir="${src.dir}" destdir="${classes.dir}" />
</target>
<!-- RUN Test.java -->
<target name="cleandist" depends="clean, makedirectories, compile,dist">
</target>
<target name="run" depends="compile">
<echo message="Executing Test.java ..."/>
<java fork="true" classname="Test">
<classpath>
<path location="${classes.dir}"/>
</classpath>
</java>
</target>
</project>