This is the Java implementation of the library used to generate and parse the Detection Formats.
- Detection Formats utilizes JSON for formatting.
- Detection Formats was written in Java 1.7
- Detection Formats is built with Apache Ant, and was written using Eclipse. Eclipse project files, source files, and ant build.xml are included
- Detection Formats utilizes json.simple to format, parse, and write JSON. A copy of the json.simple jar is included in this project.
- Detection Formats uses junit for unit testing.
- Detection Formats uses Cobertura and supporting jars for coverage testing.
The steps to get and build detection-formats.jar using ant are as follows:
- Clone detection-formats.
- Open a command window and change directories to /java/
- To build the jar file, run the command
ant jar
- To run junit tests, run the command
ant test
. - To generate javadocs, run the command
ant javadoc
- To compile, instrument, test, run coverage report, generate javadocs, build
jar, run the command
ant all
Once you are able to build the detection-formats jar, simply include the jar file in your application.