Changes between Version 6 and Version 7 of JavaSupport


Ignore:
Timestamp:
May 21, 2013 11:33:42 AM (11 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JavaSupport

    v6 v7  
     1= Jabac =
    12
    23[[TOC]]
    34
    4 ABAC Java API is supported via SWIG generated JNI
     5jabac is a native java implementation of libabac, based on the Jung graph libraries.  It developed alongside the C libabac library, and the API is the same in general, but there are some differences in detail.  Some calls take slightly different parameters and the whole thing takes more advantage of the java object framework.  The jibrary has complete [http://abac.deterlab.net/javadoc/index.html javadocs on the site] as well as in the distribution.
    56
    6 == Documentation ==
     7The java is distributed in the [http://abac.deterlab.net/src/abac-0.1.4.tar.gz main source distribution] and full sources are in [WikiStart#TrackingDevelopment the usual source code reops].
    78
    8  * Main ABAC documentation still applies to Java as well as normal ABAC keystores and examples
    9  * Generated Java doc can be found at /swig/java/doc after installation of the [source:/swig/java@mei_rt2 Java subdirectory]
    109
    11  Special Note: An explicit call to free context (free_context_now()) is needed to workaround a Java GC problem using libstrongswan in ABAC
     10== Installing from Source ==
    1211
    13 == Installation ==
    14 
    15 The Java code all lives in the [source:/swig/java@mei_rt2 Java subdirectory] of the main source tree.
    16 
    17 === Just Compile ===
     12Download the [http://abac.deterlab.net/src/abac-0.1.4.tar.gz main distribution] and [WikiStart#SoftwareDependencies install the java dependencies.] Those are a JVM and the ant build system. Everythine else is in the distribution.  From there you can build the distribution:
    1813
    1914{{{
    20 ant all
     15$ cd abac-0.1.4/java
     16$ ant all
    2117}}}
    2218
    23 === Other Compile Options ===
     19That target creates the jabac jar file (in {{{build/jabac-1.4.jar}}}) and the java docs for users (in {{{doc}}}) and developers (in {{{dev-doc}}}).  You can run regression tests using:
    2420
    25 The following {{{ ant }}} targets are supported:
     21{{{
     22$ ant regression-test
     23}}}
    2624
    27  * {{{all}}}: clean then compile and make docs
    28  * {{{compile}}}: build the library and test programs
    29  * {{{run-setup}}}: run a simple test program in !SetupTest.java
    30  * {{{run-test}}}: run a simple test program in !ProverTest.java(params in target)
    31  * {{{jar}}}: build jabac.jar in build/jar/jabac.jar
    32  * {{{doc}}}: generate API javadocs in ./doc
    33  * {{{dev-doc}}} create developer API javadocs in ./dev-doc (includes package/private/protected functions)
    34  * {{{clean}}}: remove created files (includes .der and .pem in this directory)
     25The regression tests (in {{{net/deterlab/abac/regression}}}) show jabac in action, as does the [CrudgeDocs crudge browser].
     26