Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download the DSpace's Coding Conventions config file: dspace-eclipse-format.xml\|IDE Integration - DSpace, Eclipse and Tomcat^dspace-eclipse-format.xml|||^Dspace-eclipse-format.xml|^Dspace-eclipse-format.xmlInstall either as workspace default or for your individual DSpace project(s).
  2. #* (Workspace Default) Select Window -> Preferences in Eclipse. Go to the Java -> Code Style -> Formatter. Click the "Import..." button and select the file.
    • (Individual Project) Right click on the DSpace project, select Properties. Go to the Java -> Code Style -> Formatter. Click the "Import..." button and select the file.

...

To ease building/cleaning your DSpace projects, it's highly recommended to create some quick "tasks" within Eclipse's "External Tools Dialog". To get to the External Tools Dialog, look in the Eclipse toolbar for the Green "play" (>) button with a Red toolbox under it. Click on it, and select "Open External Tools Dialog".

Info

March 3, 2011: If you are using Eclipse 3.6 (Helios), it's important to note that changes in the Eclipse API have both made the project configuration framework more efficient and flexible while making the Maven Build tasks obsolete (source). I will attempt to post more detailed documentation on changes. -petienne

  • DSpace Clean task (Cleans all of DSpace)
    • Right click on "Maven Build" section and select "New"
    • Name it something like "DSpace Clean"
    • Click the "Browse Workspace" button, and select your dspace sub-module (or separate project).
    • In the Goals, enter "clean", click Apply.
  • DSpace Assemble task (Assembles all of DSpace)
    • Right click on "Maven Build" section and select "New"
    • Name it something like "DSpace Assemble"
    • Click the "Browse Workspace" button, and select your dspace sub-module (or separate project).
    • In the Goals, enter "package", click Apply.
  • JSPUI Assemble task (Assembles just the JSP-UI - useful if you only changed the JSP-UI)
    • Right click on "Maven Build" section and select "New"
    • Name it something like "JSPUI Assemble"
    • Click the "Browse Workspace" button, and select your dspace-jspui sub-module (or separate project).
    • In the Goals, enter "package", click Apply.
  • XMLUI Assemble task (Assembles just the XML-UI - useful if you only changed the XML-UI)
    • Right click on "Maven Build" section and select "New"
    • Name it something like "XMLUI Assemble"
    • Click the "Browse Workspace" button, and select your dspace-xmlui sub-module (or separate project).
    • In the Goals, enter "package", click Apply.
  • You can also create tasks to assemble just the OAI-PMH interface (dspace-oai) or LNI (dspace-lni) similar to those for the XMLUI and JSPUI.

...