Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-build-dev] PDE build does not include correct versions of required plugins


That bug (203270) would be slightly more specific than Ken's case.  It is about when the feature specifies a version like 3.2.1.qualifier and pde.build chooses something like 3.2.2

Ken, the .product file does not currently support specifying versions, and the code that generates the feature does not have a way to specify them either.
The only way to do this would be to make your own features and base your .product file on features instead.

However, if you want to stay with a plugin based product, it would be possible to modify the generated feature before build scripts are generated.  Using either a preFetch or preGenerate customTarget you could actually use pde.build's eclipse.idReplacer task to modify the version numbers in the generated feature.

Something like:
<eclipse.idReplacer
        featureFilePath="${buildDirectory}/features/org.eclipse.pde.build.container.feature/feature.xml"
        selfVersion="1.0.0"
        featureIds=""
        pluginIds="org.eclipse.core.databinding:0.0.0,1.3.0.qualifier,org.eclipse.jface.databinding:0.0.0,1.3.0.qualifier,"/>

The pluginIds specifies the plugin, the current version in the feature.xml and the version to replace it with.
Note however there are 2 bugs that might cause you problems here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198536 : Inifinite Loop : Rare in this case, depends on how your VM does HashMaps.  Exists in 3.3.0, fixed in 3.3.1
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205230: NPE : You will hit this unless you replace versions of every plugin listed in the feature.  Does not exist in 3.3.0, occurs in 3.3.1

I would suggest using the 3.3.0 pde.build unless the infinite loop is a problem for you.

-Andrew



kennywest <kenneth.westelinck@xxxxxxxxxx>
Sent by: pde-build-dev-bounces@xxxxxxxxxxx

10/04/2007 04:30 AM

Please respond to
"Eclipse PDE Build developers list." <pde-build-dev@xxxxxxxxxxx>

To
pde-build-dev@xxxxxxxxxxx
cc
Subject
Re: [pde-build-dev] PDE build does not include correct versions of        required plugins






Thank you for your reply.
My "product configuration" is based on plug-ins, instead of features. So the
feature.xml is generated by PDE build, I assume. If I open the feature.xml,
all versions are 0.0.0. Any possibilities to let PDE build generate a
feature.xml containing the correct versions?


David M Williams wrote:
>
> Perhaps related to Bug 203270 - Problems with qualifier substitution and
> bundle look-up?
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=203270
> Which was worked around by including the qualifier in the feature.xml.
>

--
View this message in context: http://www.nabble.com/PDE-build-does-not-include-correct-versions-of-required-plugins-tf4555419.html#a13034798
Sent from the Eclipse PDE - build mailing list archive at Nabble.com.

_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev


Back to the top