Changeset edf9e1d


Ignore:
Timestamp:
Mar 26, 2011 2:08:34 PM (8 years ago)
Author:
Ted Faber <faber@…>
Branches:
abac0-leak, abac0-mei, compt_changes, gec13, master, mei-id, mei-rt0-n, mei_rt0, mei_rt2, mei_rt2_fix_1, meiyap-rt1, meiyap1, rt2, tvf-new-xml
Children:
388a3d7
Parents:
1b88de8
Message:

Neaten up and comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/build.xml

    r1b88de8 redf9e1d  
    1 <project name="ABAC demo">
     1<!--
     2  Project file for ant to build java ABAC library and test cases. 
     3  Requires Jung and bouncycastle.
     4
     5  Targets:
     6    all: clean then compile
     7    compile: build the library and test programs
     8    run-test: run a simple test program in GraphTest.java (params in target)
     9    run-dump: run a program to dump a certificate in ASN1 (params in target)
     10    jar: build jabac.jar in build/jar/jabac.jar
     11    doc: greate API javadocs in ./doc
     12    dev-doc: create developer API javadocs in ./dev-doc (includes
     13            package/private/protected functions)
     14    clean: remove created files (includes .der and .pem in this directory)
     15-->
     16
     17<project name="jabac">
     18
    219  <property name="src.dir" value="."/>
    320  <property name="lib.dir" value="jar"/>
     
    1027  <property name="dump.class" value="Dumper"/>
    1128
     29  <path id="compile.classpath">
     30    <fileset dir="${lib.dir}" includes="**/*.jar"/>
     31  </path>
     32
     33  <target name="all" depends="clean, compile" description="Clean then build" />
     34
    1235  <target name="clean">
    1336    <delete dir="${build.dir}"/>
     
    1740      <fileset dir="${basedir}" includes="**/*.der"/>
    1841      <fileset dir="${basedir}" includes="**/*.pem"/>
     42      <fileset dir="${basedir}" includes="**/*.zip"/>
    1943    </delete>
    2044  </target>
    2145
    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" />
    2746
    2847  <target name="compile" description="Compile the source">
     
    3453  <target name="jar" depends="compile" description="Make a jar">
    3554    <mkdir dir="${jar.dir}"/>
    36     <jar destfile="${jar.dir}/abac.jar" basedir="${classes.dir}"
    37       excludes="**/GraphTest.class">
     55    <jar destfile="${jar.dir}/jabac.jar" basedir="${classes.dir}"
     56      excludes="**/GraphTest.class **/Dumper.class">
    3857      <manifest>
    3958        <attribute name="Class-Path" value="${classpath}" />
     
    5675  </target>
    5776
    58   <target name="run" depends="compile" description="run visualizer">
     77  <target name="run-test" depends="compile" description="run visualizer">
    5978    <java classname="${main.class}" fork="true" >
    6079      <classpath>
     
    6887  </target>
    6988
    70   <target name="dump" depends="compile" description="run dumper">
     89  <target name="run-dump" depends="compile" description="run dumper">
    7190    <java classname="${dump.class}" fork="true" >
    7291      <classpath>
Note: See TracChangeset for help on using the changeset viewer.