Eclipse RCP: How to download delta pack from software site in the Target Definition file?
Asked Answered
D

3

10

I'm using this technique to create a target platform for my Eclipse RCP projects: http://www.modumind.com/2009/09/01/creating-an-eclipse-rcp-target-platform/

The RCP SDK is downloaded directly using the software site. As for the delta pack, I manually downloaded it from website, and added the directory in the target definition file, which in my opinion is tedious when I want to upgrade the delta pack version next time.

Is it possible to download the delta pack using the software site too? Or at least do it in less manual and more maintainable approach?

Thanks.

Dysgenic answered 23/11, 2010 at 22:54 Comment(0)
C
8

Add a main eclipse update site to the target. Take care of the version. Then from this site choose the RCP target and Equinox target features. Make sure to check "Include all environments".

Example of update site: http://download.eclipse.org/eclipse/updates/4.2


Addition

Here is the full answer to this question.

Preferred way of using the "DeltaPack"

The DeltaPack is used to get platform specific artifacts so that you can export your RCP product for multiple platforms. See the next section for more information on the DeltaPack

Adding platform specific artifacts

The preferred way of getting the platform specific artifacts is to just add them to the target platform. There is no need to look-up and download the "DeltaPack" if you follow these instructions.

  • Open Window/Preferences.
  • Find PDE/Target Platform
  • Select your (active) target platform
  • Click Edit
  • Click Add
  • Select "Software Site"
  • Click Next
  • In "Work With" type: http://download.eclipse.org/eclipse/updates/4.3 (replace 4.3 with your current version)
  • Check "Eclipse RCP Target Components"
  • Check "Equinox Target Components"
  • Uncheck "Include required software"
  • Check "Include all environments"
  • Press Finish
  • Press Finish
  • Press OK

Open your product file and select the "Export" option. You will see that the "Export for multiple platforms" checkbox is available.

Old way of using the "DeltaPack"

What is the DeltaPack

The DeltaPack is a distribution from Eclipse that contains platform specific files for all supported platforms and widget sets. It contains:

  • SWT Platform Layers
    Various plugins to handle connection to the native OS widgets.

  • Various launchers (exe, cmd, etc..)
    Files to launch Eclipse from the command line

  • Other platform specific plugins
    Hooks into secure storage, native networking and native Eclipse filesystem hooks

In total there are some 70 plugins to support the complete range of supported operating systems (around a dozen).

When do you need it

You need it if you want to export your RCP application to multiple targets (a combination of OS/ARCH/WIDGETSET: e.g. linux/ppc64/gtk ). This is typically done from the product configuration file.

How to get it

You can get it from: http://download.eclipse.org/eclipse/downloads/

Click on any of the builds and look for DeltaPack. Please note that there are discussions on removing the DeltaPack and getting it the preferred way.

How to add it to your target platform

  • Download the DeltaPack as described above
  • Unzip it to a location .e.g. "C:\eclipse-4.4M7-delta-pack"
  • Open Window/Preferences.
  • Select PDE/Target Platform
  • Select your (active) target platform
  • Click Edit
  • Click Add
  • Select "Directory"
  • Click Next
  • In "Location" type: "C:\eclipse-4.4M7-delta-pack\eclipse"
  • Press Next
  • Press Finish
  • Press Finish
  • Press OK

Open your product file and select the "Export" option. You will see that the "Export for multiple platforms" checkbox is available.

Cineraria answered 4/10, 2012 at 23:20 Comment(0)
K
3

During setting up a software site for your target, you can select 'Include all environments' (after unselecting 'Include required software'), which should make maintaining a delta pack unnecessary.

Karyn answered 23/11, 2010 at 23:21 Comment(4)
I did check "Include all environments". However, when I tried to export, there's no Next button in the Export Dialog for me to select the platforms. When I manually added the delta pack directory into the target definition, then the Next button showed up. Am I missing something here? Thanks.Dysgenic
@limc: Ah, sorry, don't know what that might be, we're not using the target definition to export with PDE, but with Tycho - which builds fine with the 'Include all environments' setting.Karyn
Did you face some unsatisfiable dependencies when loading the delta pack from the update site? I got this problem using tycho and the target-platform. Could you please take a look at it?Telethermometer
@Dysgenic After checking "Include all environments" you need to re-select the plugins you want to use. ;) I stumbled across the same problem and then noticed that no plugins had been selected after I checked "Include all environments".Bufford
K
2

My solution for sharing delta-pack:

  1. Download the official delta-pack
  2. Convert it to update-site (or software-site as you call it)
  3. Place the update-site to my own server (e.g. http://example.com/my-delta-pack)
  4. Add the update-site to my target definition

ad 2) I use a command-line tool called Publisher. It's a part of Eclipse IDE.

Example usage:

${eclipse.home}/eclipse.exe
   -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher
   -metadataRepository file:/${basedir}/${target.delta}
   -artifactRepository file:/${basedir}/${target.delta}" />
   -source ${source.delta}
   -publishArtifacts
   -compress
Kessler answered 26/4, 2012 at 23:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.