Skip to content

Building

Matthew Caruana Galizia edited this page Nov 14, 2016 · 2 revisions

To compile Extract you'll need the JDK 8, Tesseract (in order to pass tests) and Maven.

If you're on a Mac, you can install Homebrew then run brew install tesseract and brew install maven in your terminal to install the latter.

After that it's a simple matter of running the following your terminal:

  • [email protected]:ICIJ/extract.git to clone the repository
  • cd extract/
  • mvn install or mvn install -DskipTests to build without running the tests

You can then run Extract using java -jar target/extract.jar.

Executable

We were originally using Capsule to build system-specific executables, but abandoned that method because of the slow startup time and interference with console logging.

You can still create a shortcut executable by small script in /usr/local/bin on Linux or Mac. For example:

#!/usr/bin/env bash
java -Djava.util.logging.config.file=/usr/local/etc/logging.properties -jar /opt/extract/target/extract.jar "$@"
Clone this wiki locally