source: java/build.xml @ d69593c

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

ASN1 dumper to see what bouncy castle sees.

  • Property mode set to 100644
File size: 1.9 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  <property name="dump.class" value="Dumper"/>
9
10  <target name="clean">
11    <delete dir="${build.dir}"/>
12    <delete>
13      <fileset dir="${basedir}" includes="**/*.der"/>
14      <fileset dir="${basedir}" includes="**/*.pem"/>
15    </delete>
16  </target>
17
18  <path id="compile.classpath">
19    <fileset dir="${lib.dir}" includes="**/*.jar"/>
20  </path>
21
22  <target name="all" depends="compile" description="Clean then build" />
23
24  <target name="compile" description="Compile the source">
25    <mkdir dir="${classes.dir}" />
26    <javac srcdir="${src.dir}" destdir="${classes.dir}" 
27      classpathref="compile.classpath"/>
28  </target>
29
30  <target name="jar" depends="compile" description="Make a jar">
31    <mkdir dir="${jar.dir}"/>
32    <jar destfile="${jar.dir}/abac.jar" basedir="${classes.dir}"
33      excludes="**/GraphTest.class">
34      <manifest>
35        <attribute name="Class-Path" value="${classpath}" />
36      </manifest>
37    </jar>
38  </target>
39
40  <target name="run" depends="compile" description="run visualizer">
41    <java classname="${main.class}" fork="true" >
42      <classpath>
43        <path refid="compile.classpath"/>
44        <pathelement path="${classes.dir}"/>
45      </classpath>
46      <arg file="../examples/experiment_create/"/>
47      <arg value="Acme.experiment_create"/>
48      <arg value="Bob"/>
49    </java>
50  </target>
51  <target name="dump" depends="compile" description="run dumper">
52    <java classname="${dump.class}" fork="true" >
53      <classpath>
54        <path refid="compile.classpath"/>
55        <pathelement path="${classes.dir}"/>
56      </classpath>
57      <arg file="attr0.der"/>
58    </java>
59  </target>
60</project>
Note: See TracBrowser for help on using the repository browser.