-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.xml
49 lines (43 loc) · 1.65 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
<project name="Cross-Server Chat" default="plugin" basedir=".">
<property name="srcplgn" location="src/main/java"/>
<property name="srcdedi" location="src/dedicated/main/java/"/>
<property name="res" location="target/classes/"/>
<property name="build" location="build"/>
<property name="dist" location="out"/>
<property name="libs" location="libs"/>
<path id="classpath">
<fileset dir="${libs}" includes="**/*.jar"/>
</path>
<target name="init">
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<target name="compile-plgn" depends="init" description="compile the source " >
<javac srcdir="${srcplgn}" destdir="${build}" classpathref="classpath">
<classpath id="classpath">
<pathelement path="${classpath}"/>
<fileset dir="${libs}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
<copy todir="${build}">
<fileset dir="${res}"/>
</copy>
</target>
<target name="plugin" depends="compile-plgn" description="generate the distribution" >
<jar jarfile="${dist}/xServerChat.jar" basedir="${build}"/>
<delete dir="${build}"/>
</target>
<target name="compile-dedi" depends="init" description="compile the source " >
<javac srcdir="${srcdedi}" destdir="${build}" classpathref="classpath"/>
</target>
<target name="dedi" depends="compile-dedi" description="generate the distribution" >
<jar jarfile="${dist}/xServerChat-DEDICATED_SERVER.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="cbp.double0negative.xServer.XServer"/>
</manifest>
</jar>
<delete dir="${build}"/>
</target>
</project>