aboutsummaryrefslogtreecommitdiffstats
path: root/tools/domctl/build.xml
blob: 88d5ffb5b56531c146cc224c27e444e154c0353b (plain)
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
<project name="domctl project" default="compile">
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist" location="dist"/>
  <property name="lib" location="lib"/>

  <target name="init">
    <tstamp/>
    <mkdir dir="${build}"/>     
  </target>

  <target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${build}" debug="on"/>
  </target>

  <target name="dist" depends="compile">
    <jar jarfile="domctl.jar"
         excludes="*~"
	 basedir="${build}">
      <fileset dir="${src}" />
      <fileset dir=".">
        <include name="build.xml"/>
        <include name="domctl"/>
      </fileset>
      <manifest>
        <attribute name="Built-By" value="${user.name}"/>
	<attribute name="Main-Class" value="uk.ac.cam.cl.xeno.domctl.Main"/>
	<attribute name="Sealed" value="true"/>
      </manifest>
    </jar>
  </target>

  <target name="test" depends="compile">
    <java fork="true" classname="uk.ac.cam.cl.xeno.domctl.Main">
      <classpath>
        <pathelement path="${build}"/>
      </classpath>
    </java>
  </target>

  <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${lib}"/>
  </target>
</project>