|
Re: Include source features in site [message #384846 is a reply to message #384844] |
Fri, 17 April 2009 07:27 |
|
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 |
Achim Demelt 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
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds