-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
51 lines (42 loc) · 1.4 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
<project name="mudclient69-deob" default="run">
<property name="main.src.dir" value="client/src" />
<property name="main.build.dir" value="build" />
<property name="dist.dir" value="dist" />
<property name="bin.dir" value="bin" />
<property name="jar.main-class" value="mudclient" />
<property name="jar.name" value="${ant.project.name}.jar" />
<property name="jar.file" value="${dist.dir}/${jar.name}" />
<target name="compile">
<mkdir dir="${main.build.dir}" />
<javac srcdir="${main.src.dir}" destdir="${main.build.dir}" includeantruntime="false" encoding="UTF-8">
</javac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${bin.dir}" />
<mkdir dir="${dist.dir}" />
<jar destfile="${jar.file}" basedir="${main.build.dir}">
<manifest>
<attribute name="Main-Class" value="${jar.main-class}"/>
</manifest>
</jar>
</target>
<target name="distrun" depends="dist">
<java jar="${jar.file}" dir="${bin.dir}" fork="true" >
<arg value="10.10.200.1" />
<arg value="43594" />
</java>
</target>
<target name="run" depends="compile">
<java classname="${jar.main-class}" fork="true">
<classpath>
<pathelement location="${main.build.dir}"/>
</classpath>
<arg value="10.10.200.1" />
<arg value="43594" />
</java>
</target>
<target name="clean">
<delete dir="${main.build.dir}" />
<delete dir="${bin.dir}" />
</target>
</project>