source: java/build.xml @ 8a6181b

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since 8a6181b was 7ad0076, checked in by Ted Faber <faber@…>, 14 years ago

Use GraphTest? again

  • Property mode set to 100644
File size: 1.8 KB
Line 
1<project name="ABAC demo">
2  <property name="src.dir" value="."/>
3  <property name="lib.dir" value="jar"/>
4  <property name="build.dir" value="build"/>
5  <property name="classes.dir" value="${build.dir}/classes"/>
6  <property name="jar.dir" value="${build.dir}/jar"/>
7  <property name="main.class" value="GraphTest"/>
8
9  <target name="clean">
10    <delete dir="${build.dir}"/>
11    <delete>
12      <fileset dir="${basedir}" includes="**/*.der"/>
13      <fileset dir="${basedir}" includes="**/*.pem"/>
14    </delete>
15  </target>
16
17  <path id="compile.classpath">
18    <fileset dir="${lib.dir}" includes="**/*.jar"/>
19  </path>
20
21  <target name="all" depends="compile" description="Clean then build" />
22
23  <target name="compile" description="Compile the source">
24    <mkdir dir="${classes.dir}" />
25    <javac srcdir="${src.dir}" destdir="${classes.dir}" 
26      classpathref="compile.classpath"/>
27  </target>
28
29  <target name="jar" depends="compile" description="Make a jar">
30    <mkdir dir="${jar.dir}"/>
31    <jar destfile="${jar.dir}/abac.jar" basedir="${classes.dir}"
32      excludes="**/GraphTest.class">
33      <manifest>
34        <attribute name="Class-Path" value="${classpath}" />
35      </manifest>
36    </jar>
37  </target>
38
39  <target name="run" depends="compile" description="run visualizer">
40    <!-- ant doesn't seem to understand symlinks right.  If you don't delete
41    <symlink action="delete" link="${classes.dir}/resources"/>
42    <symlink link="${classes.dir}/resources" resource="${basedir}/resources/"/>
43         this before you create it, you wind up with extras. -->
44    <java classname="${main.class}" fork="true" >
45      <classpath>
46        <path refid="compile.classpath"/>
47        <pathelement path="${classes.dir}"/>
48      </classpath>
49      <arg file="../examples/experiment_create/"/>
50      <arg value="Acme.experiment_create"/>
51      <arg value="Bob"/>
52    </java>
53  </target>
54</project>
Note: See TracBrowser for help on using the repository browser.