Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Include source features in site
Include source features in site [message #384844] Fri, 17 April 2009 06:49 Go to next message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Hi,

I've finally found the time to upgrade to the new Buckminster version and
can now generate source bundles and features. Yay! I have two questions,
though:

1) How can I include generated source features into a (p2) update site? I
tried including the source feature in the "category.members" property in my
site's build.properties, but that didn't help. Anything else I need to do?

2) Alternatively, I'd also like to include a (generated) source feature in
another feature. For example, my "SDK" feature should not only contain the
binary features, but also the sources. A user installing the SDK feature
would then automatically get the sources, too. Is that possible?

Regards,
Achim
Re: Include source features in site [message #384846 is a reply to message #384844] Fri, 17 April 2009 07:27 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Achim Demelt wrote:
> Hi,
>
> I've finally found the time to upgrade to the new Buckminster version and
> can now generate source bundles and features. Yay! I have two questions,
> though:
>
> 1) How can I include generated source features into a (p2) update site? I
> tried including the source feature in the "category.members" property in my
> site's build.properties, but that didn't help. Anything else I need to do?
>
No? I works for me. Here's a working example:

bin.includes = feature.xml

category.id.buckminster.tools=Buckminster Tools
category.members.buckminster.tools=\
org.eclipse.buckminster.galileo.builder.feature,\
org.eclipse.buckminster.galileo.builder.source.feature
category.description.buckminster.subclipse=A collection of tools based on Buckminster Technology


> 2) Alternatively, I'd also like to include a (generated) source feature in
> another feature. For example, my "SDK" feature should not only contain the
> binary features, but also the sources. A user installing the SDK feature
> would then automatically get the sources, too. Is that possible?
>
Yes, but I think it requires a buckminster.cspex that removes the dependency to the source feature. It will be included
in the build anyway due to attributes that references the source feature generation in the original feature. Not optimal
and room for improvements of course, I just haven't gotten that far yet.

Regards,
Thomas Hallgren
Re: Include source features in site [message #384848 is a reply to message #384846] Fri, 17 April 2009 08:48 Go to previous message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Thomas,

Comments below.

>> 1) How can I include generated source features into a (p2) update site? I
>> tried including the source feature in the "category.members" property in
>> my site's build.properties, but that didn't help. Anything else I need to
>> do?
>>
> No? I works for me.

All right, my fault. I was working with Buckminster r10104. I upgraded to
r10157 and now my source features appear in the update site. :) Now I'd like
to selectively _hide_ some source features in the update site, but that's
something for another day.

> >
>> 2) Alternatively, I'd also like to include a (generated) source feature
>> in another feature. For example, my "SDK" feature should not only contain
>> the binary features, but also the sources. A user installing the SDK
>> feature would then automatically get the sources, too. Is that possible?
>>
> Yes, but I think it requires a buckminster.cspex that removes the
> dependency to the source feature. It will be included in the build anyway
> due to attributes that references the source feature generation in the
> original feature. Not optimal and room for improvements of course, I just
> haven't gotten that far yet.
>

I tried that, but it seems that removing the dependency alone is not enough.
I'd also have to alter the groups and actions. However, I'll postpone that
effort until after my vacation. ;-)

Thanks,
Achim
Previous Topic:Unable to materialize buckminster headless
Next Topic:Source bundle and roots
Goto Forum:
  


Current Time: Fri Apr 26 15:39:27 GMT 2024

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

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

Back to the top