Home » Archived » Buckminster » How can I materialize both: target platform and source code into workspace in one go?
How can I materialize both: target platform and source code into workspace in one go? [message #757207] |
Thu, 17 November 2011 01:55  |
Eclipse User |
|
|
|
Hi Buckminster community!
I have a question regarding materialization of both: target platform elements and source code projects into the workspace with one cquery/mspec.
According to BuckyBook (Chapter "When is a MSPEC needed" and more precisely "p2 materializer"), the default behaviour when materializing components being source=true or false is almost exactly what I need. I'd like to have components marked with "source=false" to end up in a target platform and "source=true" as source code projects in my Eclipse workspace.
The only thing that bothers me is the selection of the target platform where components are materialized into, as described in "p2 materializer". My application has nothing to do with Eclipse (i.e. it's not an RCP app), it's just using OSGi. Thus, I'd like to have a "plain and empty" target platform to start with and have it filled with components as found in the resolve process. Unfortunately, BuckyBook says it's different: "An automatically created target platform is based on the configuration of the currently running Eclipse instance."
How can I prevent this?
At first, I was thinking, that an mspec instead of a cquery alone may be the way to go. But there it seems only to be possible to have "everything" ending up in a target platform, and not only the source=false components.
Any hints much appreciated.
Thanks and regards
Kay
[Updated on: Thu, 17 November 2011 01:57] by Moderator
|
|
| | | |
Re: How can I materialize both: target platform and source code into workspace in one go? [message #758252 is a reply to message #758157] |
Tue, 22 November 2011 07:51   |
Eclipse User |
|
|
|
Thanks again Thomas.
>> Is it complicated to change that default behaviour in Buckminster? Can you give me a hint where to start looking in the
>> source?
>>
> Do you still thing that changing the default behavior is necessary?
At this point I guess I'm supposed to say "no, no need for changing it, thanks". 
In fact, "changing" was probably not the appropriate wording anyway, "extending it" would have been better. I'm sure, the current behaviour is what most developers using Buckminster would expect.
Anyway, I agree, that the little step to create that empty target platform is reasonable and no big deal at all. It's not a crucial thing nor a must have to have it in Buckminster. It just bugs me, that everything appears to be there, there's just that one thing: the creation of a prefilled target platform instead of optionally an empty one...
Can it really be that hard to have some property that can be set in cquery / rmap / mspec / wherever for the process "create a target platform if there is none" to indicate "... and keep it empty"?
Regards
Kay
|
|
|
Re: How can I materialize both: target platform and source code into workspace in one go? [message #758549 is a reply to message #758252] |
Wed, 23 November 2011 11:09   |
Eclipse User |
|
|
|
I (as build engineer) created, as a one-off action, an (almost) empty workspace, with just a single project in in, called tp/, which contains just 2 files: .project, and something called dynamic.target, which defines tp/ as the target platform. We make a few other workspace preference change, then zip this up and put it on our web site.
All developers start off by downloading and unzipping this template workspace, then all they need to so is open the CQuery, enter the component name, and resolve. It's even easier than it sounds - we have a little Python script whch does all that (download, unzip, open CQuery, materialize). The script knows, for each version of each product we develop, what CQuery and component name to use.
Part of this process is described at http://www.opengda.org/documentation/manuals/Infrastructure_Guide/trunk/checking_out/new_workspace.html (though that is a little out of date).
|
|
| |
Goto Forum:
Current Time: Wed Jul 23 17:36:29 EDT 2025
Powered by FUDForum. Page generated in 0.45065 seconds
|