Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » how to exclude a feature from a p2 site ?
how to exclude a feature from a p2 site ? [message #644667] Mon, 13 December 2010 16:58 Go to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
hi,
i loooked around to find some directions to exclude a particular feature
from an update site produced by buckminster.

i got a build feature that includes two feature, one for my update site
and one for the tests.

But using that feature ends with a complete update site with tests
included.
How can i exclude the second feature ?

note that i use hudson to build...



--
Cheers,

Stéphane Bouchet, OBEO
Re: how to exclude a feature from a p2 site ? [message #644685 is a reply to message #644667] Mon, 13 December 2010 18:52 Go to previous messageGo to next message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
Did you try running site.p2 on your product feature after you've built
your build feature? This should assemble the update site using
features/plugins that you just built but without your test feature.

Another alternative might be to remove your test feature from your build
feature.xml and add it back in using buckminster.cspex. This way
buckminster will see it for building purposes but it won't include it in
the update site. E.g., here I exclude feature
org.eclipse.equinox.executable from the update site:

<cspecExtension
xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">

<dependencies>
<dependency name="org.eclipse.equinox.executable"
componentType="eclipse.feature"/>
</dependencies>

<alterActions>
<public name="buckminster.clean">
<prerequisites>
<attribute name="buckminster.clean"
component="org.eclipse.equinox.executable"/>
</prerequisites>
</public>
</alterActions>

<alterGroups>
<public name="bundle.jars">
<attribute name="bundle.jars"
component="org.eclipse.equinox.executable"/>
</public>
<public name="feature.references">
<attribute name="feature.jars"
component="org.eclipse.equinox.executable" contributor="false"/>
</public>
<public name="product.configuration.exports">
<attribute name="product.configuration.exports"
component="org.eclipse.equinox.executable"/>
</public>
<public name="source.bundle.jars">
<attribute name="source.bundle.jars"
component="org.eclipse.equinox.executable"/>
</public>
<public name="source.feature.references">
<attribute name="source.feature.jars"
component="org.eclipse.equinox.executable" contributor="false"/>
</public>
</alterGroups>
</cspecExtension>

--Peter

On 12/13/10 11:58 AM, Stéphane Bouchet wrote:
> hi,
> i loooked around to find some directions to exclude a particular feature
> from an update site produced by buckminster.
>
> i got a build feature that includes two feature, one for my update site
> and one for the tests.
>
> But using that feature ends with a complete update site with tests
> included.
> How can i exclude the second feature ?
>
> note that i use hudson to build...
>
>
>
Re: how to exclude a feature from a p2 site ? [message #645044 is a reply to message #644685] Wed, 15 December 2010 10:38 Go to previous messageGo to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
peter,

thanks for your help, i can achieve what i wanted to do the following :

having a build feature that map the contains of my update site ( without
tests ) ( second tip you gave )

cheers,

Le 13/12/2010 19:52, Peter Nehrer a écrit :
> Did you try running site.p2 on your product feature after you've built
> your build feature? This should assemble the update site using
> features/plugins that you just built but without your test feature.
>
> Another alternative might be to remove your test feature from your build
> feature.xml and add it back in using buckminster.cspex. This way
> buckminster will see it for building purposes but it won't include it in
> the update site. E.g., here I exclude feature
> org.eclipse.equinox.executable from the update site:
>
> <cspecExtension
> xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
>
> <dependencies>
> <dependency name="org.eclipse.equinox.executable"
> componentType="eclipse.feature"/>
> </dependencies>
>
> <alterActions>
> <public name="buckminster.clean">
> <prerequisites>
> <attribute name="buckminster.clean"
> component="org.eclipse.equinox.executable"/>
> </prerequisites>
> </public>
> </alterActions>
>
> <alterGroups>
> <public name="bundle.jars">
> <attribute name="bundle.jars" component="org.eclipse.equinox.executable"/>
> </public>
> <public name="feature.references">
> <attribute name="feature.jars"
> component="org.eclipse.equinox.executable" contributor="false"/>
> </public>
> <public name="product.configuration.exports">
> <attribute name="product.configuration.exports"
> component="org.eclipse.equinox.executable"/>
> </public>
> <public name="source.bundle.jars">
> <attribute name="source.bundle.jars"
> component="org.eclipse.equinox.executable"/>
> </public>
> <public name="source.feature.references">
> <attribute name="source.feature.jars"
> component="org.eclipse.equinox.executable" contributor="false"/>
> </public>
> </alterGroups>
> </cspecExtension>
>
> --Peter
>
> On 12/13/10 11:58 AM, Stéphane Bouchet wrote:
>> hi,
>> i loooked around to find some directions to exclude a particular feature
>> from an update site produced by buckminster.
>>
>> i got a build feature that includes two feature, one for my update site
>> and one for the tests.
>>
>> But using that feature ends with a complete update site with tests
>> included.
>> How can i exclude the second feature ?
>>
>> note that i use hudson to build...
>>
>>
>>
>


--
Cheers,

Stéphane Bouchet, OBEO
Re: how to exclude a feature from a p2 site ? [message #645079 is a reply to message #645044] Wed, 15 December 2010 14:10 Go to previous message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
I should have mentioned that #2 will actually include that feature in
your update site, but it won't be categorized and so won't show up as
top-level (in categorized view). Sorry about the confusion.
--Peter

On 12/15/10 5:38 AM, Stéphane Bouchet wrote:
> peter,
>
> thanks for your help, i can achieve what i wanted to do the following :
>
> having a build feature that map the contains of my update site ( without
> tests ) ( second tip you gave )
>
> cheers,
>
> Le 13/12/2010 19:52, Peter Nehrer a écrit :
>> Did you try running site.p2 on your product feature after you've built
>> your build feature? This should assemble the update site using
>> features/plugins that you just built but without your test feature.
>>
>> Another alternative might be to remove your test feature from your build
>> feature.xml and add it back in using buckminster.cspex. This way
>> buckminster will see it for building purposes but it won't include it in
>> the update site. E.g., here I exclude feature
>> org.eclipse.equinox.executable from the update site:
>>
>> <cspecExtension
>> xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
>> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
>>
>> <dependencies>
>> <dependency name="org.eclipse.equinox.executable"
>> componentType="eclipse.feature"/>
>> </dependencies>
>>
>> <alterActions>
>> <public name="buckminster.clean">
>> <prerequisites>
>> <attribute name="buckminster.clean"
>> component="org.eclipse.equinox.executable"/>
>> </prerequisites>
>> </public>
>> </alterActions>
>>
>> <alterGroups>
>> <public name="bundle.jars">
>> <attribute name="bundle.jars"
>> component="org.eclipse.equinox.executable"/>
>> </public>
>> <public name="feature.references">
>> <attribute name="feature.jars"
>> component="org.eclipse.equinox.executable" contributor="false"/>
>> </public>
>> <public name="product.configuration.exports">
>> <attribute name="product.configuration.exports"
>> component="org.eclipse.equinox.executable"/>
>> </public>
>> <public name="source.bundle.jars">
>> <attribute name="source.bundle.jars"
>> component="org.eclipse.equinox.executable"/>
>> </public>
>> <public name="source.feature.references">
>> <attribute name="source.feature.jars"
>> component="org.eclipse.equinox.executable" contributor="false"/>
>> </public>
>> </alterGroups>
>> </cspecExtension>
>>
>> --Peter
>>
>> On 12/13/10 11:58 AM, Stéphane Bouchet wrote:
>>> hi,
>>> i loooked around to find some directions to exclude a particular feature
>>> from an update site produced by buckminster.
>>>
>>> i got a build feature that includes two feature, one for my update site
>>> and one for the tests.
>>>
>>> But using that feature ends with a complete update site with tests
>>> included.
>>> How can i exclude the second feature ?
>>>
>>> note that i use hudson to build...
>>>
>>>
>>>
>>
>
>
Previous Topic:Making sub-components updateable via p2
Next Topic:No class files in jar
Goto Forum:
  


Current Time: Fri Apr 26 04:26:41 GMT 2024

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

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

Back to the top