Question

I have a bunch of Eclipse plugins and features, which I would like to build as part of a nightly (headless) build. I've managed to do this using a complicated setup involving manually specifying paths to Eclipse plugin jars, copying customTargets.xml, etc.

Is there really no simpler solution? Isn't there a way to just point out my Update Site's site.xml and say "build"; i.e. the equivalent of clicking "Build All" in the Update Site project?

Was it helpful?

Solution

Given that all the answers to this question are all 3-5 years old, I figure an update would be useful to others.

For those who want to add the building of Eclipse plugins to the CI process, I recommend they check out the Eclipse Tycho project. This is essentially a Maven plugin that allows you you to wrap eclipse projects within Maven project. With this we use Atlassian Bamboo to build our Eclipse plugin. This also allows us to use the Maven jarsigner plugin to sign our plugin files.

OTHER TIPS

We're currently struggling with the same problem. Perhaps this article: http://www.eclipse.org/articles/Article-PDE-Automation/automation.html will help you ?

I've just been fighting with this problem myself. Are you using the productBuild script? Maybe putting your features into a product would help you out.

I am doing a headless build on a product configuration. The only script that I customized was to add some ant tasks to customTargets.xml to get my sources from SVN and to do a little cleanup on JNLP manifests after the build as I am using WebStart.

Then you only need to invoke antRunner on the out of the box productBuild.xml in the scripts/productBuild directory (in the pde-build plugin).

Check out Ant4Eclipse. I've used it to parse Eclipse's .classpath/.project files to determine project dependencies and classpaths. In combination with Groovy Ant Task, I have automatically built multiple projects in Ant using the Eclipse project files for build information.

A buildPlugin task exists, but I have not personally used it.

We are currently using PDE to automatically build features and our complete product. It works quite well. Make sure you use the right script for product build or feature build. Eclipse Help on using PDE

EDIT: We've now migrated to Buckminster, which has an excellent command line interface.

You might look into buckminster and maven. There is a learning curve for sure, but they seem to do their jobs well.

We are using headlesseclipse, which can be found on Google Code:

http://code.google.com/p/headlesseclipse/

It works quite well, and can easily automate command-line building of plugins and features. However, I have not yet found a way to automate building of the update site via the command line.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top