Skip to main content
Jump to: navigation, search

Difference between revisions of "CDO Source Installation"

(Prepare the IDE)
 
(83 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Introduction ==
+
To provision the same development environment that the CDO developers use follow these simple steps:
This tutorial describes how to install the CDO workspace using [http://www.eclipse.org/buckminster/ Buckminster]. This new version checks out the workspace projects from '''SVN'''. The deprecated CVS version can be found [[CDO Source Installation (CVS, deprecated)|here]].
+
  
== Prepare the IDE ==
+
# Download and start the [[Eclipse Installer]].
Download and install Eclipse 3.7 from http://download.eclipse.org/eclipse/downloads
+
# Drag [https://git.eclipse.org/c/cdo/cdo.git/plain/releng/org.eclipse.emf.cdo.releng/CDOConfiguration.setup this link] and drop it on the installer's title area. Alternatively, copy the location of the previous link and apply it to the Eclipse Installer either via the menu in the upper right in simple mode or via the left-most toolbar button to the upper right in advanced mode.
 +
# Review and/or edit the variable values that the installer presents.
 +
# Click the Next/Finish buttons until the installation starts.
  
Then open a fresh development workspace.
 
  
[[Image:Cdo_install1.png]]
+
You can update your development workspace by pulling the latest updates into your CDO Git clone and selecting the '''Perform Setup Tasks...''' action in the '''Help''' menu.
 
+
 
+
Add the following plug-ins from the Indigo p2 repository (http://download.eclipse.org/releases/indigo)
+
 
+
Install the following features:
+
* EMF - Eclipse Modeling Framework SDK
+
* Buckminster - Core
+
* Buckminster - Subversive Support
+
* Buckminster - PDE Support
+
* Subversive SVN Team Provider
+
* GMF 1.4 SDK (needed for CDO Dawn)
+
 
+
 
+
[[Image:Cdo_source2.png]]
+
 
+
[[Image:Cdo_install3.png]]
+
 
+
[[Image:Cdo_source4.png]]
+
 
+
[[Image:Cdo_source5.png]]
+
 
+
'''Hint:''' You may alternatively install from the buckminster update site. Subclipse support is available there. Add '''http://download.eclipse.org/tools/buckminster/updates-3.7''' to your update sites and select the required features.
+
 
+
Now you have prepared your IDE with the required tools.
+
 
+
== Create the Target Platform ==
+
 
+
For the target platfrom first create an empty project called "_target".
+
 
+
[[Image:Cdo_install4.png]]
+
 
+
 
+
Now create an empty target definition that Buckminster later can fill with the needed plug-ins (Windows->Preferences->Plugin Development->Target Platform)
+
 
+
 
+
[[Image:Cdo_install5.png]]
+
 
+
 
+
Insert the name for the target platform.
+
 
+
[[Image:Cdo_install6.png]]
+
 
+
+
 
+
Click 'Add'.
+
 
+
[[Image:Cdo_install7.png]]
+
 
+
 
+
 
+
Add the directory location ${workspace_loc}/_target.
+
 
+
[[Image:Cdo_install8.png]]
+
 
+
 
+
Activate the platform.
+
 
+
[[Image:Cdo_install9.png]]
+
 
+
== Create the API Baseline ==
+
 
+
Now we need to create an API baseline. First, create a new workspace project called "_baseline"
+
 
+
[[Image:Cdo_export_targetdef0.png]]
+
 
+
* Download a fresh [http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php Eclipse 3.6], extract and run it.
+
* Install all features from [http://net4j.sourceforge.net/update/ http://net4j.sourceforge.net/update/].
+
* Install all features from [http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/ http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/].
+
* Copy or move the ''plugins/'' folder from the new Eclipse installation into the ''_baseline'' workspace project.
+
* Delete the rest of the new Eclipse installation.
+
 
+
Now we must add the API baseline. Open the <i>Preferences</i> (Window->Preferences) and open the "API Baselines" page.
+
 
+
[[Image:Cdo_export_targetdef3.png]]
+
 
+
Click "Add Baseline...". Give it the name ''CDO 3.0 GA Baseline'' and choose the path to your ''_baseline'' project as destination. Then the API baseline is created and set active for your workspace.
+
 
+
[[Image:Cdo_export_targetdef4.png]]
+
 
+
== Bootstrap the Releng Project ==
+
 
+
Now you need to bootstrap the releng project.
+
 
+
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org.eclipse.emf.cdo/releng/org.eclipse.emf.cdo.releng/psf/pserver/_bootstrap.psf?root=Modeling_Project&view=co
+
 
+
Committers use:
+
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org.eclipse.emf.cdo/releng/org.eclipse.emf.cdo.releng/psf/extssh/_bootstrap.psf?root=Modeling_Project&view=co
+
 
+
Right click the Package Explorer and choose Imort->Team Project Set. Select the downloaded _bootstrap.psf
+
 
+
[[Image:Cdo_install10.png]]
+
 
+
[[Image:Cdo_install11.png]]
+
 
+
[[Image:Cdo_install12.png]]
+
+
 
+
 
+
Note, if you want to work on CDO 3.0 switch the branch with Team|Switch to "R3_0_maintenance" branch (not tag!)
+
 
+
== Materialize the Sources and the Target Platform ==
+
 
+
To materialize the sources right-click the local.mspec, select Buckminster|Import...
+
 
+
[[Image:Cdo_install15.png]]
+
 
+
While the following dialog is running go and fetch a coffee, or two, or three...
+
 
+
 
+
[[Image:Cdo_install16.png]]
+
 
+
Finally hit the 'Finish' button
+
 
+
[[Image:Cdo_install14.png]]
+
 
+
== Updating the Workspace ==
+
 
+
You can update your development workspace with re-importing the local.mpec as described above. Then the whole workspace and the target platform are updated.
+
 
+
Note, that re-importing doesn't update your source from CVS repository.
+

Latest revision as of 06:08, 2 February 2018

To provision the same development environment that the CDO developers use follow these simple steps:

  1. Download and start the Eclipse Installer.
  2. Drag this link and drop it on the installer's title area. Alternatively, copy the location of the previous link and apply it to the Eclipse Installer either via the menu in the upper right in simple mode or via the left-most toolbar button to the upper right in advanced mode.
  3. Review and/or edit the variable values that the installer presents.
  4. Click the Next/Finish buttons until the installation starts.


You can update your development workspace by pulling the latest updates into your CDO Git clone and selecting the Perform Setup Tasks... action in the Help menu.

Back to the top