Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

[0] Generating a notes platform

Paul Bastide edited this page Dec 7, 2015 · 1 revision

For this process, a valid, licensed installation of Notes 9+ Social Edition with the OpenSocial Component installed is required. The OpenSocial Component can be selected on the Custom Setup page of the Notes installer. Eclipse 3.8+ is required as well.

Read here first

The platform generation is required only for the command line build.

If you work within an Eclipse environment, you can use the notes.platorm platform definition from within the com.ibm.sbt project root folder.

You will need to configure the notes_install_path variable to point to your local notes installation.

Look here for how to configure variables in Eclipse based IDE

If you have access to domino you can use that as well, using the domino.platform target definition.

Creating the target platform in p2 format

The p2 platform creation is performed by the Eclipse FeaturesAndBundlesPublisher task, launched for all of the Notes component folders.

These two commands will put all plugins needed in the target folder. The append flag will merge the content from the rcp and shared folders.

eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository [repository] -artifactRepository [repository] -publishArtifacts -compress -append -bundles "[notes]\framework\rcp\eclipse\plugins" -features "[notes]\framework\rcp\eclipse\features"

eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository [repository] -artifactRepository [repository] -publishArtifacts -compress -append -bundles "[notes]\framework\shared\eclipse\plugins" -features "[notes]\framework\shared\eclipse\features"

use appropriate value for:

  • [repository] the location you want the repository to be created - use the **URI **sintax here, i.e. file:///
  • [notes] the location of the notes installation directory

more information about this task here:

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_publisher.html

Using the target platform in eclipse

After creating a target platform, create a new target definition in eclipse using the current target as template, then add in the directory where the notes platform was created

more information about this task here:

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fconcepts%2Ftarget.htm

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Ftarget_shared%2Fnew_target_wizard.htm&cp=4_3_9_6_0

Using the target platform in the command line build

Launch the build passing a URI to the newly created target platform as a java system property named notes-platform, i.e.

mvn install -Dnotes-platform=[repository]