Target Platform Improvements, Top Eclipse Helios Feature #6

There are three large groups of artifacts that play a key role while writing software. There are the tools you use, the code you write and the libraries you depend on. There is a large body of research studying the cognitive support provided by software development tools. There is also a number of tool centric development models. Facilities like Yoxos and the Eclipse Market Place help you manage these tool chains.

Regarding source code management, there’s a endless debate over which tools, technologies and techniques we should use. In fact, most University curriculum’s spend a great deal of time on how to best architect, design, document, write and manage source code.

However, when it comes to the management of your 3rd party libraries — the code you need but you don’t write — this is very much an ad hoc process. Finding dependencies, including them on your build path, finding the corresponding source, determining (and locating) which version you need, etc… is mostly a manual process:

  1. Figure out what jar you need (Apache commons collections for example)
  2. Use google to search for the jar
  3. Add the jar to your path
  4. Run
  5. Look at the errors
    • Did you have the right version
    • Did you miss any dependencies
  6. Figure out what else you need to find
  7. GOTO 2

Lucky for us as Eclipse developers, PDE’s Target Platform and Target Definitions make this process effortless. You can define and share you dependencies with your team. If you are missing a dependency, it can be automatically provisioned and placed on your build-path.

Eclipse 3.6 is hitting the shelves (or at least the download mirrors) in 1 week, and to celebrate this release I’ve been counting down the Top 10 features I’m most excited about. Number 6 on my list is the Improvements to Target Platform Management.

In Eclipse 3.6 you will be able to search repositories and quickly add components from these repositories to your target platform (Ctrl+Shift+Alt+A).

add to target Target Platform Improvements, Top Eclipse Helios Feature #6

In addition to this, a new quickfix allows you to search repositories for a missing import package and have a bundle supplying the package added to your target.

hover quick fix Target Platform Improvements, Top Eclipse Helios Feature #6

Finally, one of the biggest headaches for release engineers is collecting all these bundles that constitute your target. There is now a new export wizard that will export all the bundles in your target to a single directory. The tool will also generate a p2 repository. This repository can then be used in your build as a repoBaseLocation.

export target Target Platform Improvements, Top Eclipse Helios Feature #6

A big thanks goes out to Chris Aniszczyk and his army of Minions for this work ;-).

5 Responses to “Target Platform Improvements, Top Eclipse Helios Feature #6”

  1. Bruno says:

    Never heard about Maven in Eclipse Land ?

  2. Udo says:

    Great overview of the new Target Platform features in Eclipse 3.6.
    I only miss, maybe I don’t know yet, a tool to use the selfmade target platform as build dependency in an automatic PDE build, i.e. I just add a “target platform” property to my build.properties file and the build knows where to get the dependencies from.

  3. Ian Bull says:

    @burno: yep, I’ve heard about maven and there are some great maven tools for Eclipse. In fact, the fine folks behind Maven are doing some excellent work in the Eclipse community. Likely a great area for integration is Maven and the Target Platform work.

    @Udo: yes, this is a much needed feature. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=266311

  4. Luís Carlos Moreira da Costa says:

    Great post!

    Thanks!

  5. RefuX says:

    One problem I have you don’t get to see the actual repo the item is found. For example I search for a junit, I get a lot of results, but I don’t want to use some random one. I’d like the actual ‘offical’ repo for junit.

5 responses so far

Written by . Published in Categories: EclipseSource News, Planet Eclipse