-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
73 lines (64 loc) · 2.16 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
<?xml version="1.0"?>
<project name="cassandra-test" default="all" basedir=".">
<!-- Project-wide settings. All directories are relative to the -->
<!-- project root directory -->
<!-- Project directories -->
<property name="src.dir" value="src"/>
<property name="bin.dir" value="bin"/>
<property name="lib.dir" value="lib"/>
<!-- Global settings -->
<property name="javac.debug" value="on"/>
<!-- Global "magic" property for <javac> -->
<property name="build.compiler" value="modern"/>
<path id="classpath">
<fileset dir="${bin.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- We also mark the start time of the build, for the log. -->
<target name="prepare">
<tstamp/>
<echo message="${TSTAMP}"/>
</target>
<!-- Build the application -->
<target name="build" depends="prepare">
<!-- Compile the application classes -->
<javac destdir="${bin.dir}" debug="${debug.flag}" deprecation="on" includeAntRuntime="false">
<!-- We could have used javac's srcdir attribute -->
<src path="${src.dir}"/>
<classpath refid="classpath"/>
</javac>
<tstamp/>
<echo message="${TSTAMP}"/>
</target>
<!-- Delete class files built during previous builds. Leave directories -->
<target name="clean">
<delete>
<fileset dir="${bin.dir}" includes="**/*.class"/>
</delete>
</target>
<!-- Delete any created directories and their contents -->
<target name="cleanall" depends="clean">
<delete dir="${bin.dir}"/>
</target>
<!-- Build the application -->
<target name="run">
<tstamp/>
<echo message="${TSTAMP}"/>
<!-- Compile the application classes -->
<java classname="eu.cassandra.platform.Platform" fork="true">
<!--<jvmarg value="-Xmx256m" />-->
<!--<jvmarg value="-Xms32m" />-->
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<dirset dir="${bin.dir}" />
</classpath>
</java>
<tstamp/>
<echo message="${TSTAMP}"/>
</target>
<target name="all" depends="build,run"/>
</project>