Can the component name in a CQUERY be overridden? [message #647942] |
Mon, 10 January 2011 14:51 |
Matthew Webber Messages: 198 Registered: December 2010 |
Senior Member |
|
|
We have a large number of projects that all have a similar dependency and build structure. To materialise one of these projects, developers use a kind of 'template' CQUERY for a buckminster component which I have called XX-config.
Within the Eclipse IDE, the developer simply opens the template CQUERY (which is located at a web url), changes the component name to, e.g. i24-config, and clicks "resolve and materialise".
Now, I want to do the same using headless buckminster. However, I can't find any wasy way to override the component name. I tried
import -Dbuckminster.component=i24-config http://myserver/XX-config.cquery
but it didn't work (which is not that surprising).
Is there a way to dynamically determine the component name? I get the impression that Buckminster expects a separate CQUERYs for each root component, but is there a way to avoid having many CQUERYs that vary only in component name?
Obviously I could wget the template CQUERY and then edit it using a script, but this seems hacky and fighting Buckminster rather than working with it.
I'm really keen to get a good solution in place, as I see Buckminster as the solution to managing our dependency mess. I've managed to do quite a lot so far.
Thanks
Matthew
|
|
|
Re: Can the component name in a CQUERY be o verridden? [message #647976 is a reply to message #647942] |
Mon, 10 January 2011 15:46 |
Henrik Lindberg Messages: 2509 Registered: July 2009 |
Senior Member |
|
|
Not sure if there is support to set the queried component using a property
(I.e an arbitrary property interpolated into the queried name). Don't think
you can set buckminster.component directly, it is the resulting property
(what buckminster is looking for) as it changes over time.
Another idea is to use an advisor node as it may allow more flexible
control.
- henrik
Matthew Webber <Matthew.Webber@diamond.ac.uk> wrote:
> We have a large number of projects that all have a similar dependency and
> build structure. To materialise one of these projects, developers use a
> kind of 'template' CQUERY for a buckminster component which I have called XX-config.
>
> Within the Eclipse IDE, the developer simply opens the template CQUERY
> (which is located at a web url), changes the component name to, e.g.
> i24-config, and clicks "resolve and materialise".
>
> Now, I want to do the same using headless buckminster. However, I can't
> find any wasy way to override the component name. I tried
>
> import -Dbuckminster.component=i24-config http://myserver/XX-config.cquery
>
> but it didn't work (which is not that surprising).
> Is there a way to dynamically determine the component name? I get the
> impression that Buckminster expects a separate CQUERYs for each root
> component, but is there a way to avoid having many CQUERYs that vary only
> in component name?
>
> Obviously I could wget the template CQUERY and then edit it using a
> script, but this seems hacky and fighting Buckminster rather than working with it.
>
> I'm really keen to get a good solution in place, as I see Buckminster as
> the solution to managing our dependency mess. I've managed to do quite a lot so far.
>
> Thanks
> Matthew
--
- henrik
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03324 seconds