-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
56 lines (46 loc) · 1.46 KB
/
build.xml
File metadata and controls
56 lines (46 loc) · 1.46 KB
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
<project name="JavaMudengine" default="ccbuild" basedir=".">
<property name="source_root" value="src" />
<property name="source" value="${source_root}/java" />
<property name="build" value="build" />
<property name="lib" value="lib" />
<path id="classpath">
<fileset dir="${lib}" includes="**/*.jar" />
</path>
<target name="clean" description="Removes previous build.">
<delete dir="${build}" />
</target>
<target name="prepare" description="prepares for a new build">
<mkdir dir="${build}" />
</target>
<target name="compile">
<echo>Compiling Java MUD Engine.</echo>
<javac srcdir="${source}" destdir="${build}">
<classpath refid="classpath" />
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="JavaMudEngine.jar">
<fileset dir="${build}" includes="**/*.class" />
<fileset dir="${source}" includes="**/*.xml" />
<fileset dir="." includes="*.properties" />
<manifest>
<attribute name="Built-By" value="George Frick" />
<attribute name="Main-Class" value="com.s5games.mud.Main" />
</manifest>
</jar>
</target>
<target name="ccbuild">
<antcall target="clean" />
<antcall target="prepare" />
<antcall target="compile" />
<antcall target="jar" />
</target>
<target name="run" depends="jar">
<java classname="com.s5games.mud.Main" fork="true">
<classpath>
<path refid="classpath" />
<path location="JavaMudEngine.jar" />
</classpath>
</java>
</target>
</project>