CombineArchive

Java library to read/write/create/manipulate/... CombineArchives

View the Project on GitHub

Build CombineArchive

When you’ve cloned the source code:

git clone https://github.com/SemsProject/CombineArchive

There are two supported options to build this project:

Build with Maven

Maven is a build automation tool. We ship a [source:pom.xml pom.xml] together with the sources which tells maven about versions and dependencies. Thus, maven is able to resolve everything on its own and, in order to create the library, all you need to call is mvn package:

usr@srv $ mvn package

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running de.unirostock.sems.cbarchive.TestArchive
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.314 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

That done, you’ll find the binaries in the target directory.

Build with Ant

Ant is an Apache tool for automating software build processes. There is a build.xml file included in the source code that tells ant what to do. Since ant is not able to resolve the dependencies you need to create a directory lib containing the following libraries:

We defined multiple targets in the build.xml. They can be displayed by calling ant -p:

usr@srv $ ant -p
Buildfile: /path/to/CombineArchive/build.xml

                Library to read/create/write/manipulate/... COMBINE archives

Main targets:

 clean    clean up
 compile  compile the source
 dist     generate the distribution
 init     initialize workspace
 sign     sign a dist
Default target: dist

For example, to create the jar library just run ant dist:

usr@srv $ ant dist
Buildfile: /path/to/CombineArchive/build.xml

init:

compile:
    [javac] Compiling 13 source files to /path/to/CombineArchive/build

dist:
      [jar] Building jar: /path/to/CombineArchive-0.6.jar
      [jar] Building jar: /path/to/CombineArchive-0.6-fat.jar

BUILD SUCCESSFUL