-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
57 lines (48 loc) · 1.69 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
<project name="rune" default="run">
<property name="main.src.dir" value="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="com.projectjava.winrune.WinRune" />
<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 source="1.5" target="1.5" 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="members=true" />
<arg value="address=10.10.200.1" />
<arg value="port=43594" />
<arg value="rsaExponent=65537" />
<arg value="rsaModulus=12345678" />
</java>
</target>
<target name="run" depends="compile">
<java classname="${jar.main-class}" fork="true">
<classpath>
<pathelement location="${main.build.dir}"/>
</classpath>
<arg value="members=true" />
<arg value="address=10.10.200.1" />
<arg value="port=43594" />
<arg value="rsaExponent=65537" />
<arg value="rsaModulus=12345678" />
</java>
</target>
<target name="clean">
<delete dir="${main.build.dir}" />
<delete dir="${bin.dir}" />
</target>
</project>