Difference between revisions of "CDO Source Installation"
(→Materialize the Sources and the Target Platform) |
(→Materialize the Sources and the Target Platform) |
||
Line 58: | Line 58: | ||
Point it to the Buckminster MSpec of CDO: [http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec]. | Point it to the Buckminster MSpec of CDO: [http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec]. | ||
− | For a 4.0 maintenance workspace use [http://git.eclipse.org/c/cdo/cdo.git/plain/releng/org.eclipse.emf.cdo.releng/local.mspec?h=streams/4.0-maintenance http://git.eclipse.org/c/cdo/cdo.git/plain/releng/org.eclipse.emf.cdo.releng/local.mspec?h=streams/4.0-maintenance] instead. Please note: This does not work until Buckminster | + | For a 4.0 maintenance workspace use [http://git.eclipse.org/c/cdo/cdo.git/plain/releng/org.eclipse.emf.cdo.releng/local.mspec?h=streams/4.0-maintenance http://git.eclipse.org/c/cdo/cdo.git/plain/releng/org.eclipse.emf.cdo.releng/local.mspec?h=streams/4.0-maintenance] instead. Please note: This does not work until Buckminster [https://bugs.eclipse.org/bugs/show_bug.cgi?id=368573 bug 368573] is resolved (please <b>vote</b> for the bug!). Instead clone the entire Git repository manually, checkout the maintenance branch, search the workspace for 'local.mspec' and import it by right-clicking and selecting Buckminster->Import... |
[[Image:cdo_import2.png]] | [[Image:cdo_import2.png]] |
Revision as of 01:40, 1 May 2012
This tutorial describes how to install a CDO workspace using Buckminster.
The sources can also be browsed through http://git.eclipse.org/c/cdo/cdo.git/tree.
Binaries can be installed or downloaded from http://www.eclipse.org/cdo/downloads.
Contents
Prepare the IDE
Download and install Eclipse 3.7 or 3.8 from http://download.eclipse.org/eclipse/downloads/eclipse3x.php
Then open a fresh development workspace.
Select the Indigo (for 3.7) or Juno (for 3.8) p2 repository and install the following features:
- EMF - Eclipse Modeling Framework SDK
- Graphical Modeling Framework (GMF) Notation SDK (needed for CDO Dawn)
- Graphical Modeling Framework (GMF) Runtime SDK (needed for CDO Dawn)
- Eclipse EGit (we install newer versions from http://download.eclipse.org/egit/updates-nightly)
Select the Buckminster p2 repository and install the following features:
- Buckminster - Core
- Buckminster - Git Support
- Buckminster - PDE Support
Committers: Please do not forget to install our versioning tool from http://download.eclipse.org/modeling/emf/cdo/updates/integration:
Now you have prepared your IDE with the required tools.
Create the API Baseline
Non-committers may skip this section, but should instead reduce the problem marker severity for "Missing API baseline" from Error to Warning or Ignore (see screenshot below)!
Download the 4.0 baseline from https://sourceforge.net/projects/net4j/files/Baselines and extract it to your local disk.
Add the API baseline to Eclipse. Open the Preferences (Window->Preferences) and go to the "API Baselines" page:
Click "Add Baseline...". Give it the name CDO 4.0 Baseline and choose the path to the folder on your local disk where you've extracted the downloaded baseline to:
Now the API baseline is created and set active for your workspace:
Materialize the Sources and the Target Platform
The materialization of the workspace contents (sources and binaries) will be performed by Buckminster with the cooperation of EGit and p2.
For EGit to work properly please create the folder ${user.home}/git on your hard disk.
Then start the Buckminster import wizard:
Point it to the Buckminster MSpec of CDO: http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec.
For a 4.0 maintenance workspace use http://git.eclipse.org/c/cdo/cdo.git/plain/releng/org.eclipse.emf.cdo.releng/local.mspec?h=streams/4.0-maintenance instead. Please note: This does not work until Buckminster bug 368573 is resolved (please vote for the bug!). Instead clone the entire Git repository manually, checkout the maintenance branch, search the workspace for 'local.mspec' and import it by right-clicking and selecting Buckminster->Import...
Press the Load button and wait until Buckminster has resolved all the dependencies (go and fetch a coffee, or two, or three).
When the dependencies have been resolved properly hit the 'Finish' button:
Finally open the Preferences (Window->Preferences) and go to the "Target Platform" page. Edit the active target platform and remove the location (not the target platform definition as a whole!) that points to the running installation. Now you're done.
Update the Workspace
You can update your development workspace by re-importing the local.mpec (right-click + Buckminster + Import...). Then the whole workspace and the target platform are updated.
Note, that re-importing does only add new source projects but doesn't update existing source projects from the Git repository. Use the 'Pull' command of EGit for this purpose!