-
Notifications
You must be signed in to change notification settings - Fork 13
Supporting Indigo SR1
reprogrammer edited this page Dec 23, 2011
·
8 revisions
- Download the Indigo SR1 version of Eclipse for RCP and RAP Developers from http://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/indigosr1/.
- Switch to the indigo-sr1 branch for your local CodingSpectator git repository.
- Ensure that any plug-ins you check out will be in the "plug-ins/indigo-sr1" 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.
- 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, delete the the CVS metadata.
- Commit the checked out version of the plug-in into the git repository of CodingSpectator at "plug-ins/indigo-sr1". Please make sure that you do not 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 #338.
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:[email protected]:/cvsroot/technologyto the "CVS Repositories" view of Eclipse. - Browse to the
HEAD/org.eclipse.eppfolder inside the CVS repository. - Right-click on the
org.eclipse.eppfolder and select "Configure Branches and Versions...". - Open the
MANIFEST.MFfile 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_Rinside the CVS repository. - Find and check out the
org.eclipse.epp.usagedata.feautrebundle tagged asINDIGO_R. - Make the initial commit of
org.eclipse.epp.usagedata.feautreinto "plug-ins/indigo-sr1" folder. - Replace
"license-feature-version="3.7.0.qualifier"bylicense-feature-version="3.7.1.qualifier"inplug-ins/indigo-sr1/org.eclipse.epp.usagedata.feature/feature.xmland commit the change.
- Navigate to the root directory of CodingSpectator.
- Select the plug-in that you wish to generate a patch for.
-
git log directory-of-pluginwhere directory-of-plugin is like "plug-ins/indigo/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 InitialSHA master directory-of-plugin > someFile.patch- Navigate back to your instance of Eclipse Indigo SR1.
- 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".
- The patch contents will begin with "a/plug-ins/indigo". So, set the "Ignore leading path name segments:" to 3.
- In the "Apply Patch" dialog, exclude all changes to bin. Select the changes to bin, right-click on them and select "Exclude".
- In the "Apply 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 #338.