/
build.xml
47 lines (42 loc) · 1.63 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
<?xml version="1.0"?>
<project name="animalkingdom" basedir="." default="test">
<property name="dist" location="${basedir}/dist" />
<property name="serverengine.dir" value="${basedir}/ServerEngine" />
<property name="world.dir" value="${basedir}/AnimalKingdomWorld" />
<property name="allWorld.dir" value="${basedir}/World" />
<property name="cross.dir" value="${basedir}/Crossdomain" />
<target name="build-serverengine" depends="">
<ant antfile="buildServerEngine.xml" dir="${serverengine.dir}">
</ant>
</target>
<target name="build-world" depends="">
<ant antfile="buildWorld.xml" dir="${world.dir}">
</ant>
</target>
<target name="build-allWorld" depends="">
<ant antfile="buildWorld.xml" dir="${allWorld.dir}">
</ant>
</target>
<target name="build-cross" depends="">
<ant antfile="buildCross.xml" dir="${cross.dir}">
</ant>
</target>
<target name="cleandist" description="clean up">
<delete dir="${dist}/allWorld" />
<delete dir="${dist}/world" />
<delete dir="${dist}/cross" />
<delete dir="${dist}/asset" />
</target>
<target name="test">
<antcall target="cleandist" />
<antcall target="build-serverengine" />
<antcall target="build-world" />
<antcall target="build-allWorld" />
<antcall target="build-cross" />
<mkdir dir="${dist}" />
<copydir dest="${dist}/world" src="${world.dir}/dist/world"></copydir>
<copydir dest="${dist}/allWorld" src="${allWorld.dir}/dist/allWorld"></copydir>
<copydir dest="${dist}/cross" src="${cross.dir}/dist/cross"></copydir>
<copydir dest="${dist}/asset" src="${basedir}/Game/src/asset"></copydir>
</target>
</project>