A Rough Guide to James Development Using Eclipse

Follow these steps to develop James code using the Eclipse IDE. Use the Eclipse Help and Tutorials to more fully understand the Eclipse concepts and actions described here.

Download and Install Eclipse

Eclipse can be obtained from http://www.eclipse.org/. Follow the installation instructions that come with the download.

Connect to the Apache CVS repository

Check Out James from the Apache CVS repository

Verify Checkout

Before attempting to configure Eclipse, verify that you have everything you need by running a build of James outside of Eclipse. This will fetch, or prompt you to fetch, any missing components.

Customize Project Settings

You are now ready to develop James in Eclipse.

Build, Test and Debug Code

As James is a server application I prefer to transfer my updated files to a remote machine, run James' Ant build script (build.bat or build.sh) on the remote machine to update the distribution and then use the Eclipse remote debugger to test. This means that the build, deployment and execution are being tested as they will be used and any changes validated. You can use another session on your local machine as the 'remote machine', the JVM is still 'remote' from the one used by Eclipse. The JVM pointed to by the JAVA_HOME environment variable for the session used to build and run James must be v1.4.0 or above. To debug remotely:

Read the Eclipse Help to understand the many facilities now at your fingertips.

Release patches

Eclipse is able to build patches against the code stored in the CVS repository. This makes patch creation very easy. Still, remember that the code in the repository may have changed since you imported it. Use the CVS Perspectives Synchronisation feature to ensure you are up-to-date before creating a patch. Eclipse offers the ability to generate a patch that includes new files. This does not work when the new file is in a new directory! It is safest to work in the more conventional manner, building a patch for changed files and submitting new files separately.

To create a patch:

You have created a patch!

EclipseNotes (last edited 2009-09-20 23:31:35 by localhost)