Building the Coherence Incubator Projects

Skip to end of metadata
Go to start of metadata

Overview

Coherence Incubator projects are shipped both as a pre-compiled jar as well as java source. The compilation and run-time of the Incubator projects only depends on a JDK version greater than 1.5 and Coherence greater than 3.5.3.
While you may use your preferred way of building the source, we have an example below showing how to build the source using Apache Ant.

Downloading Installing and Configuring Apache Ant

  1. Download the current version of Apache Ant (typically ant-current-bin.zip) from here: http://www.apache.org/dist/ant/
  2. Uncompress the downloaded file into a suitable folder (let's call this /your/path/to/ant)
  3. Set an environment variable called ANT_HOME in your system environment variables.
    1. For *nix bash-based shells (like Apple OS X), perform the following;
    2. Open ~/.profile with your favorite text editor.
    3. Add the following to the top of the file: export ANT_HOME=/your/path/to/ant
    4. Edit (or define) a PATH export to be as follows:
    5. export PATH=$ANT_HOME/bin:$PATH
    6. Save your .profile and exit your editor
    7. Execute the following shell command (in a Terminal Window) to re-read your new profile: source ~/.profile
    8. From a shell prompt (in a Terminal Window) you should now be able to execute the following command (from any path) to determine the version of Ant you have just installed: ant -version

Configuring Eclipse to use the Apache Ant installation

If you're using Eclipse (or another IDE) it's recommended that you upgrade it to use the latest Apache Ant release you've just installed. Here's how:

  1. Open Eclipse
  2. Open the Preference Window
    1. On *nix-based releases of Eclipse (including Apple OS X), choose the Eclipse > Preferences menu.
    2. On Windows-based releases of Eclipse, choose the Window > Preferences menu.
  3. Choose Ant > Runtime
  4. Press the "Ant Home..." button
  5. Choose the location of /your/path/to/ant

Building the Incubator projects

Below you will find an ant script that you can use to build the Incubator projects.

  1. Download and unzip the incubator-project-src.zip
  2. In the directory where you unzipped, create a directory named "dependencies"
  3. Copy coherence.jar from your Coherence application to the dependencies library
  4. Copy the below ant script to an ant file: custom-build.xml
  5. On the command line, run ant -f custom-build.xml
  6. In the newly created .build directory you will find the compiled jar
If the Incubator project depends on another Incubator project, you will have to build that first, and copy that jar to the dependencies directory. See Home for a view of all dependencies.

In the ant script below, the jar will be named after the project name, please rename the <project name="name of the incubator project"> to get a differently named jar.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.