Skip to main content

Local Build

The build is easy to run on a local machine.

  1. Make sure that you have JDK 8 and Ant installed. Both should be on the path.
  2. Set JDK_8_HOME environment variable to point to your JDK 8 install.
  3. Clone the Sapphire Git repository and pick the desired branch.
  4. Open a shell to the Git workspace and execute ant dev-build.

If you are working with multiple Sapphire branches, you may want to share the bundle pool so that every branch does not need to re-download everything it needs. The default bundle pool folder is [root]/releng/pool, but you can change it by setting the `SAPPHIRE_BUNDLE_POOL` environment variable or the `bundle.pool` property when invoking the build. An absolute path is required in both cases.

Example:   ant dev-build -Dbundle.pool=d:\Sapphire\Downloads

Once the build completes, you will notice the following key folders in the Git workspace:

  • build/repository : Repository of build artifacts, including runtime bundles, source bundles and the SDK.
  • dev-eclipse : Eclipse with select plugins along with Sapphire SDK from the build. This Eclipse configuration is designed to be appropriate for working on Sapphire.
  • dev-target : Eclipse with select plugins along with all of Sapphire, including source bundles. This Eclipse configuration is designed to make a good target platform.
Sapphire Logo

Back to the top