Skip to main content
Jump to: navigation, search

Difference between revisions of "Orion/Getting the source"

m (update link from Eclipse 3.7M7 to Eclipse 3.7.1)
(Accessing the code)
Line 5: Line 5:
Source for Orion can be forked from our [[Git]] repositories:
Source for Orion can be forked from our [[Git]] repositories:
* {{Git|orion|org.eclipse.orion.server.git}}
* {{Git|orion|org.eclipse.orion.client.git}}
* {{Git|orion|org.eclipse.orion.client.git}}
* {{Git|orion|org.eclipse.orion.server.git}}
You can also view/fork our mirrors on GitHub:
You can also view/fork our mirrors on GitHub:

Revision as of 16:47, 30 January 2012

This page covers how to take a look at the source, as well as how to set up for self-hosting (changing Orion code from Orion). See the Releng Builds page for details on how to contribute changes to the build.

Accessing the code

Source for Orion can be forked from our Git repositories:

You can also view/fork our mirrors on GitHub:

Self hosting using

Eclipse committers can self host with our demo server located at See Selfhosting for instructions.

Self hosting using local server

We assume you are familiar with git. If not, review the Eclipsepedia Git Page. You can use EGit (the Eclipse Git client) or the command-line Git client. If you are on Windows, use msysgit if you prefer the command line git client.

Self-hosting locally involves running an Orion server on localhost, pointing your Orion editor at your local git repo directories, and working within Orion to make changes. Changes are committed using the command-line tools (or EGit), as a separate phase from the Orion workflow. Orion M6 will support an integrated Git workflow; see Working with git.

Here are the steps needed to get up and running.

Getting the Source onto your computer

  • For committers: Ensure that your user name and email are set up properly so that your email matches the foundation's email address on record. Otherwise you can't push changes. See Git#Committers_new_to_Git
  • Clone the Orion client and server repositories using the URLs below. Choose a target directory that works for you. You'll be importing this code later into Eclipse in order to run your changes on the local server.

For committers:

   git clone ssh://
   git clone ssh://

For everybody else:

   git clone
   git clone

Make sure that you have Git 1.7 or higher when using Git with http protocol.

If Git clone fails you can also try the git protocol

   git clone git://
   git clone git://

Install the Eclipse SDK

  • You can use any recent stable build of the Eclipse SDK to run the server, such as Eclipse 3.7.1.

Load the source into Eclipse

  • Download a stable orion build (latest integration build is the current recommendation) and unpack it somewhere on your hard disk. This download will be used as a so-called "target platform" when you run the server from Eclipse.
    • Occasionally, new dependencies are introduced in the server and you will need to take a nightly build to keep up-to-date. Check the orion-dev mailing list if you aren't sure which build to take.
  • Create a new workspace using your Eclipse SDK.
  • Use the File->Import->General->Existing Projects into Workspace wizard. In the wizard, set the root directory for the import to whatever directory you used when you cloned the Git repositories. You'll know you have the right path when you see a bunch of org.eclipse.orion.* projects in the project list.
  • Ensure that Copy projects into workspace is not checked. Feel free to import just a subset of the projects (for example, just client plugins) - the remaining ones will come from the 'target platform'.
  • The projects should appear in your workspace. Don't worry about compile errors just yet until after you've set up the target platform.
  • Now you need to set up a target that points to the Orion build you downloaded. (Window->Preferences->Plug-in Development->Target Platform).
    • Add a target
    • Initialize the target definition with "Nothing", Next...
    • In the Locations tab, click Add... , Select Installation, click "Next", click "Browse...", and point to the eclipse directory of your stable Orion build
    • Once you finish the wizard, you'll have a new target definition available in the list of targets.
    • Make this the active target definition for your self-hosting workspace.
  • Your workspace will be rebuilt and compile errors should disappear. There might be a few errors related to unsatisfied dependencies from test plugins, but you can ignore them for now.

Set up the launch to run from source

The plugin source you've loaded into Eclipse can now overwrite the plugins in the working stable build.

  • Open the Run->Run Configurations dialog, expand OSGi Framework, and select the OSGi Framework launch called "web-ide"
  • The Orion server configuration file associated with this launch configuration is called web-ide.conf. This file controls which directories the Orion server can access on your machine (among other things). You want to ensure the Orion server can update the files in your local git repo. Use whatever path format makes sense on your platform. Whatever format you use must match exactly what you type later into the "Link folder" dialog in Orion. (So if you use drive letters and back slashes on windows, you'll need to use the same format in the web client.)
  • If you only want to work on the client (not the server), you can now close the server projects (5 client projects should remain).
  • On "Bundles" pick "Launch with features selected below". Ensure there are five Orion features selected (see image below)


Running the server

  • Run the launch and point your browser at http://localhost:8080
  • You'll be prompted to login (create an account).
  • Once logged in, you'll see a landing page with descriptions of some basic tasks you can perform. You can ignore this, and click "Navigator" in the menu at the top right.
  • Click the Link Folder button on the toolbar and add a folder that links to your local git repos. For example, if you wanted to make changes to the client, you could link a folder named "Orion Client" to the following file path:
  • Repeat the previous step to add links for each git repository that you care about.
  • You should see the folders show up in your Orion explorer:
  • From here, you can start editing files. As you make changes to the client code, you can simply reload the corresponding page in your browser to see the changes. We recommend you keep a browser tab open with a stable editor and stable navigator, and open a new tab for reloading and trying changes. In this way, you'll always have a couple of safe browser tabs to use to revert changes if you break something!

Back to the top