-
Notifications
You must be signed in to change notification settings - Fork 54
/
build.xml
76 lines (62 loc) · 2.24 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<project name="JMP" basedir="." default="build">
<tstamp prefix="now" />
<property name="version" value="0.1.0" />
<property name="build.dir" value="build" />
<property name="javac.source" value="1.6" />
<property name="javac.debug" value="true" />
<property name="javac.encoding" value="8859_1"/>
<property name="lib.dir" value="lib" />
<property name="src.dir" value="src" />
<condition property="config" value="conf/jmp.properties">
<not>
<isset property="config" />
</not>
</condition>
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="commons-io-2.4.jar" />
<include name="Ehcache/ehcache-core-2.5.2.jar" />
<include name="Ehcache/ehcache-terracotta-2.5.2.jar" />
<include name="Ehcache/slf4j-api-1.6.1.jar" />
<include name="Ehcache/slf4j-jdk14-1.6.1.jar" />
<include name="Ehcache/terracotta-toolkit-1.5-runtime-4.2.0.jar" />
<include name="log4j-1.2.17.jar" />
</fileset>
</path>
<target name="init" description="Create the build dir" depends="clean">
<mkdir dir="${build.dir}" />
</target>
<target name="build" description="Build" depends="">
<antcall target="init" />
<javac destdir="${build.dir}"
includeantruntime="false"
classpathref="classpath"
debug="${javac.debug}"
encoding="${javac.encoding}"
source="${javac.source}">
<src path="${src.dir}" />
</javac>
<jar destfile="JMP-${version}.jar"
basedir="${build.dir}"
includes="*.class"
manifest="JarManifest"
compress="true"
update="true"
/>
<antcall target="clean" />
</target>
<target name="clean" description="Remove all work files." depends="">
<delete dir="${build.dir}" />
</target>
<target name="run" description="Run JMP">
<java jar="JMP-${version}.jar"
classpathref="classpath"
fork="true"
failonerror="true">
<jvmarg value="-Xmx2g" />
<jvmarg value="-Xshare:off" />
<sysproperty key="config" value="${config}" />
</java>
</target>
</project>