Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » how to distinguish required and addtional bundles
how to distinguish required and addtional bundles [message #789023] Thu, 02 February 2012 14:07 Go to next message
Jakob Braeuchi is currently offline Jakob Braeuchi
Messages: 69
Registered: July 2009
Location: Switzerland
Member
hi,

we have bundles with required bundles (in the manifest) and additional bundles (in build.properties) used only during the build. our dependency calculator tool resolves the build queries. i need to distinguish required from addtional bundles.
is this information available in BOMNode or CSpec ?

thanks
Jakob

Re: how to distinguish required and addtional bundles [message #792666 is a reply to message #789023] Tue, 07 February 2012 09:00 Go to previous messageGo to next message
Jakob Braeuchi is currently offline Jakob Braeuchi
Messages: 69
Registered: July 2009
Location: Switzerland
Member
hi,

we use additional.bundles for emf-models used only during build time.
when calculation the dependency of the build.queries i would like to skip these bundles. but i've not found a proper way to do it.

thanks
jakob
Re: how to distinguish required and addtional bundles [message #792905 is a reply to message #792666] Tue, 07 February 2012 14:56 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
On 2012-07-02 10:00, Jakob Braeuchi wrote:
> hi,
>
> we use additional.bundles for emf-models used only during build time.
> when calculation the dependency of the build.queries i would like to
> skip these bundles. but i've not found a proper way to do it.
>

Have you tried skipping them in the CQuery?

- henrik
Re: how to distinguish required and addtional bundles [message #793177 is a reply to message #792905] Tue, 07 February 2012 21:21 Go to previous messageGo to next message
Jakob Braeuchi is currently offline Jakob Braeuchi
Messages: 69
Registered: July 2009
Location: Switzerland
Member
hi henrik,

i think i can't skip them in the cquery because these bundles contain the emf-model for our generator and thus the bundles have to reside in the workspace.

but i'd like to skip them after i have programmatically resolved the cquery in the dependency calculator.

thanks
jakob
Re: how to distinguish required and addtional bundles [message #793351 is a reply to message #793177] Wed, 08 February 2012 03:02 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
I would avoid having the build time dependencies inside the bundles
being built.

We typically organize things to have a top level "releng" type of
feature/bundle, that contains the buckminster artifacts, but doubles as
a description of what to get when building. We typically list the build
time dependencies in this component, and then require the actual
product/top level feature that we are interested in for building/running
generators.

If you want to get fancy, you could experiment with fragments, and
perhaps use a filter expression to disqualify them when it is not
"buildtime".

Just some idea... hope that helps.
Regards
- henrik

On 2012-07-02 22:21, Jakob Braeuchi wrote:
> hi henrik,
>
> i think i can't skip them in the cquery because these bundles contain
> the emf-model for our generator and thus the bundles have to reside in
> the workspace.
>
> but i'd like to skip them after i have programmatically resolved the
> cquery in the dependency calculator.
>
> thanks
> jakob
Re: how to distinguish required and addtional bundles [message #793560 is a reply to message #793351] Wed, 08 February 2012 09:37 Go to previous messageGo to next message
Matthew Webber is currently offline Matthew Webber
Messages: 198
Registered: December 2010
Senior Member
It's not quite the same situation, but the discussion in the thread "Exclude test classes from jar file" (http://www.eclipse.org/forums/index.php/t/262698/) might also be useful to you. Note the use of buckminster.cspex.
Matthew
Re: how to distinguish required and addtional bundles [message #800601 is a reply to message #793351] Fri, 17 February 2012 09:10 Go to previous message
Jakob Braeuchi is currently offline Jakob Braeuchi
Messages: 69
Registered: July 2009
Location: Switzerland
Member
hi henrik,

as a test i moved the emf-dependency (the model bundle) from the bundle to the cspec. this also works.
but then you do not know exactly which of the bundles is depending on the model bundle; this is why we used the additional.bundles entry.

is it possible to flag these bundles as addtional during the resolving ?

jakob
Previous Topic:buckminster.postbind?
Next Topic:hudson buckminster.json
Goto Forum:
  


Current Time: Sun Sep 21 12:23:46 GMT 2014

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

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