Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Sphinx/environment"

m (Install a Subversion client: Update the SVN install)
(Cloning and importing the source code with EGit)
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This page explains how to setup a development environment for Sphinx and get the Sphinx sources.
+
This page explains how to setup an environment required for developing Sphinx. It consists of a minimal Eclipse IDE, an appropriate target platform and the source code of Sphinx.
  
==Setting the Eclipse environment==
+
==Setting up an Eclipse IDE==
Before getting Sphinx, the first step consists in setting the required Eclipse environment. The principle consists in using a minimal environment for the edition, and an adapted target platform to compile and run Sphinx.
+
  
===Install Eclipse===
+
[http://eclipse.org/downloads Download] and [http://wiki.eclipse.org/Eclipse/Installation install] the latest '''Eclipse Modeling Tools''' package.
No comments.
+
  
===Install a Subversion client===
+
==Getting the source code==
We recommend the use of Subversive.
+
  
# Install the feature group '''Subversive SVN Team Provider (Incubation)''';
+
===Git repository access===
# Restart Eclipse;
+
# Open the '''SVN Repository Exploring''' perspective;
+
# When asked, install the Subversive SVN Connectors  '''SVN Kit 1.3.5'''.
+
  
==SVN checkout==
+
The source code of Sphinx is managed in a [http://git-scm.com Git] repository that can be accessed in one of the following ways:  
===SVN repository configuration===
+
Create a new SVN repository with the following attributes:
+
* URL: https://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.sphinx (caution: https, not http)
+
* User: ''<empty>''
+
* Password: ''<empty>''
+
  
===Import the project set===
+
Read-only access:
Sphinx provides a project set that lists all the Sphinx plug-ins/projects.
+
* URL: git://git.eclipse.org/gitroot/mdt/org.eclipse.sphinx.git
* Browse the SVN repository
+
* User name: ''<leave empty>''
* Check-out the project ''trunk/tools/org.eclipse.sphinx.psf''
+
* Password: ''<leave empty>''
  
===Import the sources===
+
TODO list other access options
Once the project set is downloaded, it is easy to check-out the whole Sphinx project sources.
+
* Browse the org.eclipse.sphinx.psf project in your workspace
+
* Right-click on file all-subversive.psf
+
* Click on ''Import Project Set...''
+
  
All the projects of Sphinx are then checked out in your workspace. They are automatically organized into several working sets.
+
===Cloning and importing the source code with EGit===
 +
 
 +
The recommended way to clone and import the source code of Sphinx is to use [http://eclipse.org/egit EGit] - the Eclipse Team provider for Git:
 +
* Open the ''Git Repository Exploring'' perspective
 +
* Click on the ''Clone a Git Repository and add the clone to this view'' button
 +
* Enter the Git repository access data using one of the options indicated above, and then click on ''Next''
 +
* Select the relevant Git repository branches (e.g. ''master''), and then click on ''Next''
 +
* Make sure that ''Import all existing projects after clone finishes'' is checked and then click on ''Finish''
 +
* Wait until the cloning process has been completed and go back to the ''Plug-in Development'' perspective
  
 
==Setting the target platform==
 
==Setting the target platform==
  
===Download of the target platform===
+
Sphinx provides target platform definitions for the two latest Eclipse releases. These target definitions are in the project ''org.eclipse.sphinx.targetdefs'' which is part of the ''Tools'' working set.
Sphinx provides target platform definitions for the two last Eclipse releases. These target definitions are in the project ''org.eclipse.sphinx.targetdefs'' which is part of the ''Tools'' working set.
+
 
* Open the target definition file ''xxx.target'' that corresponds to the Eclipse release you want to work with;
 
* Open the target definition file ''xxx.target'' that corresponds to the Eclipse release you want to work with;
 
* Wait for the completion of the ''Resolving Target Definition'' operation. This may take a while, in particular at the first time, because all directly and indirectly required target platform plug-ins and features are being downloaded or updated as necessary during that operation. If errors occur, try to close and reopen the target definition file so as to re-trigger the target platform resolution;
 
* Wait for the completion of the ''Resolving Target Definition'' operation. This may take a while, in particular at the first time, because all directly and indirectly required target platform plug-ins and features are being downloaded or updated as necessary during that operation. If errors occur, try to close and reopen the target definition file so as to re-trigger the target platform resolution;
 
* Click on link ''Set as Target Platform'' (in the upper right corner of the target editor).
 
* Click on link ''Set as Target Platform'' (in the upper right corner of the target editor).
 
===Patch of target platform items===
 
Some components of the target platform have to be patched so as to incorporate bugs fixes and/or enhancements that are not yet available in the original versions of the same. The installation of these patches is automated by an Ant script:
 
* Right click on file ''org.eclipse.sphinx.targetdefs/ant/apply-patches/Apply Target Platform Patches.launch'';
 
* Select ''Run As/Apply Target Platform Patches''.
 
The script copies the patched plug-ins and features over their originals and rebuilds the full workspace. After completion, it is recommended to restart the workbench.
 
 
===Related bugs===
 
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=340589
 
  
 
==Creating an EMF example library model==
 
==Creating an EMF example library model==
Line 58: Line 41:
 
First, we have to install EMF SDK in the Eclipse environment.
 
First, we have to install EMF SDK in the Eclipse environment.
 
* Open menu ''Help/Install New Software...'';
 
* Open menu ''Help/Install New Software...'';
* Select work with ''Helios'';
+
* Select work with ''Juno'';
 
* Install ''EMF - Eclipse Modeling Framework SDK'' in ''Modeling'' category.
 
* Install ''EMF - Eclipse Modeling Framework SDK'' in ''Modeling'' category.
  

Revision as of 18:18, 8 January 2013

This page explains how to setup an environment required for developing Sphinx. It consists of a minimal Eclipse IDE, an appropriate target platform and the source code of Sphinx.

Setting up an Eclipse IDE

Download and install the latest Eclipse Modeling Tools package.

Getting the source code

Git repository access

The source code of Sphinx is managed in a Git repository that can be accessed in one of the following ways:

Read-only access:

TODO list other access options

Cloning and importing the source code with EGit

The recommended way to clone and import the source code of Sphinx is to use EGit - the Eclipse Team provider for Git:

  • Open the Git Repository Exploring perspective
  • Click on the Clone a Git Repository and add the clone to this view button
  • Enter the Git repository access data using one of the options indicated above, and then click on Next
  • Select the relevant Git repository branches (e.g. master), and then click on Next
  • Make sure that Import all existing projects after clone finishes is checked and then click on Finish
  • Wait until the cloning process has been completed and go back to the Plug-in Development perspective

Setting the target platform

Sphinx provides target platform definitions for the two latest Eclipse releases. These target definitions are in the project org.eclipse.sphinx.targetdefs which is part of the Tools working set.

  • Open the target definition file xxx.target that corresponds to the Eclipse release you want to work with;
  • Wait for the completion of the Resolving Target Definition operation. This may take a while, in particular at the first time, because all directly and indirectly required target platform plug-ins and features are being downloaded or updated as necessary during that operation. If errors occur, try to close and reopen the target definition file so as to re-trigger the target platform resolution;
  • Click on link Set as Target Platform (in the upper right corner of the target editor).

Creating an EMF example library model

The example project that is provided with Sphinx makes use of the library model coming from EMF. Thus, we have to get it to be able to compile everything.

Installing EMF SDK

First, we have to install EMF SDK in the Eclipse environment.

  • Open menu Help/Install New Software...;
  • Select work with Juno;
  • Install EMF - Eclipse Modeling Framework SDK in Modeling category.

Creating the library model projects

  • Open menu File/New/Example...;
  • Select Eclipse Modeling Framework/Extended Library Model Example;
  • Finish the creation and wait until the workspace has been rebuilt.

Back to the top