[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Generating Update Site Using PDE Build

I am using Eclipse 3.2.1 and the corresponding PDE builder to generate a ZIP 
representing my product. This works fine. However, I also want to generate 
an update site based on my features but I haven't been able to get the 
results I need.

According to the PDE Automation document 
(http://www.eclipse.org/articles/Article-PDE-Automation/automation.html) 
under the 'Build Update Site' section, there is a description of how to 
build an update site using a target for features. Although this ant task 
completes successfully and creates the JARs for my features/plugins, the 
task does not create JARs for the features that are included in my feature 
files.

For example, in one of my feature.xml files I have the following includes:

  <includes id="org.eclipse.jdt" version="0.0.0" search-location="self" />
  <includes id="org.eclipse.gef" version="0.0.0" search-location="self" />
  <includes id="org.eclipse.platform" version="0.0.0" search-location="self" 
/>
  <includes id="org.eclipse.emf" version="0.0.0" search-location="self" />
  <includes id="org.eclipse.jem" version="0.0.0" search-location="self" />
  <includes id="org.eclipse.wst" version="0.0.0" search-location="self" />
  <includes id="org.eclipse.wst.sdk" version="0.0.0" search-location="self" 
/>
  <includes id="org.eclipse.xsd" version="0.0.0" search-location="self" />

But the generated update site does not contain jars for these 
features/plugins. If I take what PDE build produces and push it to my update 
website, I get the following error when trying to update my plugins:

Unable to retrieve remote reference: 
http://myupdatesite/myupdates/features/org.eclipse.jdt_3.2.1.r321_v20060905-R4C

Note that for 'search-location' I have used the 'both' and 'self' values but 
I still do not get the included features. If I manually copy the included 
feature JARs to my update site, then the Update Manager is able to download 
the new versions of my plugins.

I have also tried the 'outputUpdateJars=true' option in my build.properties 
file. Although this builds my product ZIP as if it could be used for an 
update site, it isn't what I was looking for. I could probably use this 
solution and hack in an ant task to extract the feature/plugin JARs, but I'd 
rather find a solution that is base on PDE Build.

In my build.properties file I have the 'baseLocation' property pointed at my 
eclipse area: "/myproduct/target/base/win32/eclipse".

The build.xml file in my features area was generated from Eclipse using the 
Create Ant Build File option. I have not modified anything in this file.

Thanks,

Chris