OHF Development Environment

From SubfireWiki

Jump to: navigation, search

Back to the OHF main page.

Contents

Before you Begin

Naturally you'll need a fully working Eclipse environment. The document will not cover how to get Eclipse running.

Turning Off Auto Build

When you begin setting up your OHF development environment, it's a good idea to turn off the "Build Automatically" setting in Eclipse. The reason for this, is that OHF requires a lot of sub-projects (plugins) in order to build. This means a lot of CVS check-outs and during the dependencies building portion Eclipse will do a lot of work if it has to constantly build.

  • Note: if you have the complete list of plugins to checkout and you can do this in one go, then you may not need to do this.

To turn off the Build Automatically:

  • Window -> Preferences
  • General -> Workspace
  • un-check Build Automatically
Error creating thumbnail: convert: unable to open image `/var/lib/mediawiki/upload/b/b7/Eclipse-auto-build.png': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: unable to open file `/var/lib/mediawiki/upload/b/b7/Eclipse-auto-build.png' @ error/png.c/ReadPNGImage/3648.
convert: missing an image filename `/var/lib/mediawiki/upload/thumb/b/b7/Eclipse-auto-build.png/450px-Eclipse-auto-build.png' @ error/convert.c/ConvertImageCommand/3016.

Dependencies

After checking out a OHF plugin project, there might be errors associated with that project. One of the first things to check is that the project's dependencies have been met. To do this:

  • Right click on the project
  • PDE Tools -> Open Manifest
  • Select the Dependencies tab (bottom) or Dependencies link on the Overview page.

Issues

Bundle 'X' cannot be resolved

I'm not sure if this is an Eclipse bug or not, but sometimes I get Bundle 'X' cannot be resolved errors, even though the bundle/plugin is in my Eclipse workspace and has been built correctly. For example:

Severity and Description	Path	Resource	Location	Creation Time	Id
Bundle 'org.apache.commons.codec' cannot be resolved	org.apache.axis2/META-INF	MANIFEST.MF	line 9	1174190883681	5750
Bundle 'org.apache.commons' cannot be resolved	org.apache.axis2/META-INF	MANIFEST.MF	line 8	1174190883681	5749

A work-around for this is to close the project (Don't delete) and then re-import it into the workspace. This usually takes care of the problem.

Personal tools