-
Notifications
You must be signed in to change notification settings - Fork 3
2. Installation
CortexJDK uses Ant
to manage the build process. The default build target is 'dist' in which we compile all of our code and dependencies into a single .jar file that can then be deployed anywhere. Compilation into a package is straightforward:
$ git clone https://github.com/mcveanlab/CortexJDK
$ cd CortexJDK
$ ant
$ java -jar dist/cortexjdk.jar
Running ant
with no options is equivalent to running ant dist
. This compilation usually takes a few minutes.
For testing and debugging, it is usually not convenient to compile everything into a single redistributable package. For quick builds, we can use the 'compile' target:
$ git clone https://github.com/mcveanlab/CortexJDK
$ cd CortexJDK
$ ant compile
$ java -jar build/jars/cortexjdk.jar
The compile
target places all of the individual jar files in build/jars. As long as all of the jar files stay together, CortexJDK will function precisely the same way as it does when packaged into a single distribution. This compilation usually takes a few seconds.