Setting up a development environment
This section describes how to set up a development environment in Eclipse for working on the Cactus plugins for Eclipse.
The instructions below are for Eclipse 2.1 or greater.Let's assume you have a clean workspace and that you have checked out the Cactus source code from CVS in a
jakarta-cactus/
directory. Follow these steps:
- Import the Webapp plugin by clicking on "File | Import ...". Then pick "Existing Projects into Workspace". Browse and select the
jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.webapp
directory. Press the Ok button and then press the Finish one. Note that you'll get build errors as this plugin depends on other Eclipse plugins. More on that below.- Perform the same action for the
jakarta-cactus/integration/eclipse/org.apache.cactus.eclipse.runner
plugin.- Let's now resolve missing dependencies. Click on "File | Import ...". Then pick "External Plug-ins and Fragments". Make sure to select the "Import plug-ins and fragments required by existing workspace plug-ins" radio. Select the "Source folders" if you want to import the source code for these dependent plug-ins. This can be very useful if you're still learning Eclipse development. Click the Next button and make sure your 2 plug-in projects are selected and press Finish.
- That should normally be enough. However I have found that for some reason the workspace is still missing the
org.eclipse.ui.externaltools
plugin. Click on "File | Import ..." and then "External Plug-ins and Fragments". This time select the "Select from all plug-ins and fragments found at the specified location" radio. Press Next and select theexternaltools
plug-in from the list. Add it to your select and press Finish.