Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » productBuild.xml generateFeature generates features in random order
productBuild.xml generateFeature generates features in random order [message #315618] Wed, 16 May 2007 12:16 Go to next message
Eclipse UserFriend
Using 3.3M6 pde headless build, I'm having a problem running my build
off the .product definition. My product consists of two different
features, and one must be built before the other.

In the manifest editor I can set the order exactly as needed, but in the
generated feature.xml file in org.eclipse.pde.build.container.feature I
get two different results at random.

Here's the example. 'ca.application.feature' has a dependency on
'ca.core.feature'. Both are in the .product definition and
ca.core.feature is first.

Most times the generated feature is correct. One one host though, I
sometimes get the following which won't compile because the first two
entries are in the wrong order.

Is there no guarantee about the order in which the features in a
..product file will be built? It seemed like a recent feature to allow
you to change the order of features in the product editor so I'm
surprised the build doesn't respect this.


<?xml version="1.0" encoding="UTF-8"?>
<feature id="org.eclipse.pde.build.container.feature" version="1.0.0">
<includes id="ca.application.feature" version="0.0.0"/>
<includes id="ca.core.feature" version="0.0.0"/>
<includes id="org.eclipse.equinox.executable" version="0.0.0"/>
</feature>


Bill Kayser
Re: productBuild.xml generateFeature generates features in random order [message #315660 is a reply to message #315618] Fri, 18 May 2007 10:05 Go to previous messageGo to next message
Eclipse UserFriend
The problem is that the class that is generating the container feature is using
a HashSet to collect features. It should instead use something that preserves
order.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=187809

-Andrew
Bill Kayser wrote:
> Using 3.3M6 pde headless build, I'm having a problem running my build
> off the .product definition. My product consists of two different
> features, and one must be built before the other.
>
> In the manifest editor I can set the order exactly as needed, but in the
> generated feature.xml file in org.eclipse.pde.build.container.feature I
> get two different results at random.
>
> Here's the example. 'ca.application.feature' has a dependency on
> 'ca.core.feature'. Both are in the .product definition and
> ca.core.feature is first.
>
> Most times the generated feature is correct. One one host though, I
> sometimes get the following which won't compile because the first two
> entries are in the wrong order.
>
> Is there no guarantee about the order in which the features in a
> .product file will be built? It seemed like a recent feature to allow
> you to change the order of features in the product editor so I'm
> surprised the build doesn't respect this.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <feature id="org.eclipse.pde.build.container.feature" version="1.0.0">
> <includes id="ca.application.feature" version="0.0.0"/>
> <includes id="ca.core.feature" version="0.0.0"/>
> <includes id="org.eclipse.equinox.executable" version="0.0.0"/>
> </feature>
>
>
> Bill Kayser
Re: productBuild.xml generateFeature generates features in random order [message #315664 is a reply to message #315660] Fri, 18 May 2007 11:28 Go to previous message
Eclipse UserFriend
Andrew Niefer wrote:
> The problem is that the class that is generating the container feature
> is using a HashSet to collect features. It should instead use something
> that preserves order.
>
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=187809
>
> -Andrew

Thanks Andrew. I'll keep an eye on that.
Previous Topic:eclipsec.exe passing extra arguments to my application
Next Topic:Detect project delete/rename?
Goto Forum:
  


Current Time: Mon Jul 14 09:04:49 EDT 2025

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

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

Back to the top