Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » productBuild.xml and optional dependencies
productBuild.xml and optional dependencies [message #854708] Tue, 24 April 2012 07:06
Frank Grimm is currently offline Frank Grimm
Messages: 22
Registered: July 2009
Junior Member
Hi all,

I've got a question regarding optional dependencies and headless PDE
product export...

I'm exporting a product by means of headless PDE build (Eclipse 3.6.2,
Windows) using the org.eclipse.ant.core.antRunner Eclipse application in
combination with a small buildfile which triggers
org.eclipse.pde.build_3.6.2.R36x_20110203/scripts/productBuild/productBuild.xml.

The product export works fine. But the product contains additional
plugins (e.g., org.mortbay.jetty.server) which are not included when the
product is manually export (via the export dialog in the PDE product
editor).

I believe that the additional plugins are included in the product
because the product export includes optional dependencies.

A google search pointed me to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338878 (and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=313334). From there I
gather that the "p2.mirror" ant task's "slicingOptions" element should
have its "p2.mirror.slicing.includeOptional" attribute set to "false".

So I added "p2.mirror.slicing.includeOptional=false" to the properties
file which is used by the buildfile (i.e., to the properties file
defining which product to export, for which platform etc.).

But the "assemble.org.eclipse.pde.build.container.feature.p2" ant script
which gets generated during the product export does not reflect the
"includeOptional" attribute:

<p2.mirror>
<slicingOptions includeNonGreedy="false" />
...
</p2.mirror>

So, I'm wondering whether p2.mirror.slicing.includeOptional is the
correct property and whether it is actually supported for product
exports (i.e., does productBuild/productBuild.xml allow to exclude
optional dependencies from a product)?

Many thanks in advance,

Frank
Previous Topic:Getting position (Point) of text cursor in editor
Next Topic:Sharing built plugins among multiple products
Goto Forum:
  


Current Time: Tue Sep 16 07:40:15 GMT 2014

Powered by FUDForum. Page generated in 0.02103 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software