source: java/build.xml @ 1b88de8

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

Target to build developer docs

  • Property mode set to 100644
File size: 2.6 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="doc.dir" value="./doc"/>
8  <property name="devdoc.dir" value="./dev-doc"/>
9  <property name="main.class" value="GraphTest"/>
10  <property name="dump.class" value="Dumper"/>
11
12  <target name="clean">
13    <delete dir="${build.dir}"/>
14    <delete dir="${doc.dir}"/>
15    <delete dir="${devdoc.dir}"/>
16    <delete>
17      <fileset dir="${basedir}" includes="**/*.der"/>
18      <fileset dir="${basedir}" includes="**/*.pem"/>
19    </delete>
20  </target>
21
22  <path id="compile.classpath">
23    <fileset dir="${lib.dir}" includes="**/*.jar"/>
24  </path>
25
26  <target name="all" depends="compile" description="Clean then build" />
27
28  <target name="compile" description="Compile the source">
29    <mkdir dir="${classes.dir}" />
30    <javac srcdir="${src.dir}" destdir="${classes.dir}" 
31      classpathref="compile.classpath"/>
32  </target>
33
34  <target name="jar" depends="compile" description="Make a jar">
35    <mkdir dir="${jar.dir}"/>
36    <jar destfile="${jar.dir}/abac.jar" basedir="${classes.dir}"
37      excludes="**/GraphTest.class">
38      <manifest>
39        <attribute name="Class-Path" value="${classpath}" />
40      </manifest>
41    </jar>
42  </target>
43
44  <target name="doc" description="Generate API documentation">
45    <mkdir dir="${doc.dir}"/>
46    <javadoc sourcepath="${src.dir}" destdir="${doc.dir}"
47      classpathref="compile.classpath" access="public"
48      noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/>
49  </target>
50
51  <target name="dev-doc" description="Generate developer API documentation">
52    <mkdir dir="${doc.dir}"/>
53    <javadoc sourcepath="${src.dir}" destdir="${devdoc.dir}" access="private"
54      classpathref="compile.classpath" 
55      noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/>
56  </target>
57
58  <target name="run" depends="compile" description="run visualizer">
59    <java classname="${main.class}" fork="true" >
60      <classpath>
61        <path refid="compile.classpath"/>
62        <pathelement path="${classes.dir}"/>
63      </classpath>
64      <arg file="../examples/experiment_create/"/>
65      <arg value="Acme.experiment_create"/>
66      <arg value="Bob"/>
67    </java>
68  </target>
69
70  <target name="dump" depends="compile" description="run dumper">
71    <java classname="${dump.class}" fork="true" >
72      <classpath>
73        <path refid="compile.classpath"/>
74        <pathelement path="${classes.dir}"/>
75      </classpath>
76      <arg file="attr0.der"/>
77    </java>
78  </target>
79</project>
Note: See TracBrowser for help on using the repository browser.