-
Notifications
You must be signed in to change notification settings - Fork 14
Supporting Indigo
reprogrammer edited this page Jul 1, 2011
·
13 revisions
- Download the Indigo version of Eclipse for RCP and RAP Developers from http://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/indigor.
- Switch to the indigo branch for CodingSpectator.
- Ensure that any plug-ins you check out will be in the plug-ins/indigo directory.
- Go to the "Plug-ins" view of Eclipse and select the plug-in you'd like to patch. Then, right click on the plug-in and select Import As > Project from a Repository...
- In the "Import Plug-ins and Fragments" dialog, select "Import the indicated version" (this is the default).
- Clean the workspace and ensure that "Build Automatically" is not selected. This prevents Eclipse from generating any javadocs, html files, etc that could be mistakenly added to the initial commit.
- Commit the checked out version of the plug-in into the git repository of CodingSpectator at "plug-ins/indigo". It's all right to include the CVS metadata files. Please include the version of the plug-in that you're committing in the commit message.
Initial commit of xxx.xxx.xxx
v2011xxxxxx-xxxx
This commit belongs to issue #206.
The source code of UDC plug-ins reside in a different CVS repository. Thus, you cannot check the source of UDC plug-ins from the "Plug-ins" view. To check out the source code of UDC plug-ins used in Indigo take the following steps.
- Add the CVS repository
:pserver:anonymous@dev.eclipse.org:/cvsroot/technology
to the "CVS Repositories" view of Eclipse. - Browse to the
HEAD/org.eclipse.epp
folder inside the CVS repository. - Right-click on the
org.eclipse.epp
folder and select "Configure Branches and Versions...". - Open the
MANIFEST.MF
file of one of theorg.eclipse.epp.usagedata.*
plug-ins. Some checked tags should appear in the area entitled "New tags found in the selected files:". - Click on the "Add Checked Tags" button.
- Click on the "OK" button.
- Browse to
Versions/org.eclipse.epp/org.eclipse.epp INDIGO_R
inside the CVS repository. - Find and check out the
org.eclipse.epp.usagedata.*
plug-ins tagged asINDIGO_R
.
- First you would need to disconnect the packages from the CVS directories. This prevents Eclipse from generating extra CVS metadata after we apply the patches. Right-click on the plug-in in Eclipse, select Team > Disconnect...
- In the dialog that pops-up, do not delete the the CVS metadata. This allows us to reconnect to CVS, if necessary.
- Navigate to the root directory of CodingSpectator.
- Select the plug-in that you wish to generate a patch for.
-
git log directory-of-plugin
where directory-of-plugin is like org.eclipse.ltk.core.refactoring - Scroll to the bottom of the log and note the SHA for the initial commit. Call this InitialSHA.
git diff --no-prefix InitialSHA master directory-of-plugin > someFile.patch
- Navigate back to the Eclipse
- Right-click on the plug-in to patch and select Team > Apply Patch...
- Choose someFile.patch that was generated in the previous steps.
- In the next dialog, select "Apply the patch to the workspace root". This step is very important – if you don't select the workspace root, the patch will not apply!
- In the "Apply Patch" dialog, exclude all changes to bin. Select the changes to bin, right-click on them and select "Exclude".
- In the "Appli Patch" dialog, mark the "Generate a .rej file for unmerged hunks". Reject files will help you manually patch the files that Eclipse has failed to fully patch.
- Review the changes and check that the patch can apply cleanly. Any changes that cannot be applied cleanly should be performed by hand.
- Commit the patched version
Patched xxx.xxx.xxx
This commit belongs to issue #206.