Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

This page contains out of date or incorrect information.

Please help update this page or other pages requiring updating.

Creating a patch file

NB: Read ContributionGuidelines before submitting a patch

FIXME: Probably needs more work, especially to do with patching only selected files and not whole tree

Right click on the DSpace project, select 'Team -> Create Patch'. Select 'save in file system' and a file name. Click 'Finish' (default options are OK).

Applying a patch file

FIXME: Probably needs more work, especially to do with patching only selected files and not whole tree

Right click on the DSpace project, select 'Team -> Apply Patch'. Select the patch file from your local system.

Assuming all the files listed in the 'Verify Patch' screen have green checkmarks, then the patch is ready to apply immediately. Otherwise you may want to try some of the following options:

  • Try clicking on the "Guess" button near the Maximum fuzz factor. This sometimes helps Eclipse determine where the patched code is within files which you've locally modified.
  • Any files which still have a red exclamation mark (warning) next to them are unable to be fully patched. Unfortunately, you'll have to patch these files manually. However, sometimes Eclipse is nice enough to create a
    Code Block
    *.rej
    file for those files which did not complete successfully (e.g.
    Code Block
    home.jsp.rej
    for
    Code Block
    home.jsp
    ). Looking for those
    Code Block
    *.rej
    files is extremely helpful in determining what changes you'll have to make manually.