Monday, September 24, 2007

6 Great Links for Eclipse Build Automation with PDE Build


I was recently asked about some pointers for automated building of plug-ins and RCP applications with PDE Build. For most people the obvious starting point is the "Build and Test Automation" article on the Eclipse Corner, which was written in the Eclipse 3.0 time-frame and is now dated. Read on for pointers to more recent information.

By the way, PDE Build is a collection of ant scripts and plug-in code that helps people do automated headless builds from the command line. It is also used behind the scenes when exporting plug-ins and is part of the Eclipse SDK (org.eclipse.pde.build plug-in).


Great PDE Build Resources

  1. For those that have a copy of the RCP book laying around, Chapter 24 - Building Hyperbola offers a good introduction and overview of PDE Build.

  2. The Eclipse Help has a number of entries regarding automated building. These can be found under "Plug-in Development Environment Guide > Tasks". Building an RCP application from a product configuration file, Building Features and Advanced PDE Build topics are good starting points.

  3. The slides from "PDE Build and build clinic" from EclipseCon 2007 have comprehensive coverage of most aspects of the PDE Build. After downloading the tutorial slides, unzip them and start with "PDE Build.ppt". Kudos to Andrew Niefer for making the slides available.

    (As a side note, I would love to have the EclipseCon sessions available on DVD - like the DVDs from the JavaPolis conference. Every year I run across a few EclipseCon sessions I missed, which seem to be very useful for my current problem.)

  4. The PDE Build Screencast by J Aaron Faar is based on Eclipse 3.2. It runs 18 minutes and has a good overview of the various files involved in the build. Skip the low-resolution Google Video version and download pdebuild.zip from the SourceForge project page instead. This archive contains a high-resolution quick-time screencast (pdebuild_screencast.mov) as well as the sample code.

  5. The pluginbuilder is an Eclipse plug-in by Markus Barchfeld which comes with a form-based editor that makes dealing with the PDE Build configuration files really easy. The update site http://self.pluginbuilder.org/updateSite/ has an Eclipse 3.3 compatible version. You can also find a version for Eclipse 3.2 on the project's homepage.

  6. After automating the build, the next step often is automating existing jUnit tests with the Eclipse Test Framework. The Eclipse Testing Instructions will help you get started. At the end of that document you will find an Ant template which you can use as a starting point. The Automated Testing Framework can be downloaded from the platform download page.
Know other good PDE-Build links? Then post a comment.

Hard hat image: (c) 2007, topfer/stock.xchng

7 comments:

Ilya Shinkarenko said...

Thank you Elias, very precious info.

Roman Porotnikov said...

Debugging Eclipse PDE Build at arcaner.com

Anonymous said...

You can view some of the EclipseCon talks and many of the JavaPolis, SpringOne presentations @ www.parleys.com !

Anonymous said...

See http://eclipseassembly.sourceforge.net/

Lipi said...

You may also use headlesseclipse, an opensource eclipse plugin. More info at http://code.google.com/p/headlesseclipse

Elias Volanakis said...

@Lipi: thanks for the link.

Pef said...

Hi Elias,

I just discovered your blog and read this article. I am currently working on a project implementing automated builds with Tycho, a Maven plugin, brand new and still improving but very promising and already helpful. If you want more information, I wrote a serie of articles (Maitriser Tycho in french!) on how to set up these automated plugins builds. You can also find some resources with simply the "Tycho" keyword.

HTH! :)

 

Content: © Copyright 2007 - 2009, Elias Volanakis. All rights reserved. Datenschutzhinweis / Privacy Policy