Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » cquery with property expansion?
cquery with property expansion? [message #556480] Wed, 01 September 2010 14:12 Go to next message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Hello all,

in my .cquery, I have:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery
xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap="cif2.rmap">
<cq:advisorNode namePattern="^nl\.tue\..*$"
componentType="osgi.bundle" branchTagPath="${cquery.branch.path}"/>
</cq:componentQuery>

I resolve it in headless mode, using:

buckminster import -Dcquery.branch.path=buckminster-41-2 all-projects.cquery

However, the ${cquery.branch.path} property does not seem to get
expanded. I get this kind of errors:

nl.tue.cif.site:eclipse.feature/[1.0.0,1.0.0]: Branch buckminster-41-2
rejected: not in path '${cquery.branch.path}'

Is property expansion in cqueries not supported?

Thanks,
Dennis
Re: cquery with property expansion? [message #556482 is a reply to message #556480] Wed, 01 September 2010 14:19 Go to previous messageGo to next message
Tomsen  is currently offline Tomsen Friend
Messages: 42
Registered: July 2010
Member
Try enclosing in quotes as in

buckminster import -Dcquery.branch.path="buckminster-41-2 all-projects.cquery"


Does this path really contain the space?

regards tomsen
Re: cquery with property expansion? [message #556506 is a reply to message #556480] Wed, 01 September 2010 15:22 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
I don't think so. See the thread "Property expansion in advisor nodes?"
where Thomas gave the idea of checking the cquery into thc scm. So, on
branch buckminster-41-2 you would have:

<cq:advisorNode namePattern="^nl\.tue\..*$"
componentType="osgi.bundle" branchTagPath="buckmister-41-2"/>
</cq:componentQuery>

Regards,
Peter

Dennis Hendriks schrieb:
> Hello all,
>
> in my .cquery, I have:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="cif2.rmap">
> <cq:advisorNode namePattern="^nl\.tue\..*$"
> componentType="osgi.bundle" branchTagPath="${cquery.branch.path}"/>
> </cq:componentQuery>
>
> I resolve it in headless mode, using:
>
> buckminster import -Dcquery.branch.path=buckminster-41-2
> all-projects.cquery
>
> However, the ${cquery.branch.path} property does not seem to get
> expanded. I get this kind of errors:
>
> nl.tue.cif.site:eclipse.feature/[1.0.0,1.0.0]: Branch buckminster-41-2
> rejected: not in path '${cquery.branch.path}'
>
> Is property expansion in cqueries not supported?
>
> Thanks,
> Dennis
Re: cquery with property expansion? [message #556609 is a reply to message #556506] Thu, 02 September 2010 06:29 Go to previous message
Tomsen  is currently offline Tomsen Friend
Messages: 42
Registered: July 2010
Member
Thanks, Peter. I completely misunderstood the problem. Shocked

-Thomas
Re: cquery with property expansion? [message #556610 is a reply to message #556482] Thu, 02 September 2010 06:20 Go to previous message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Hello Tomsen,

I think you misunderstood.

buckminster import -Dcquery.branch.path=buckminster-41-2
all-projects.cquery

is interpreted by the Linux shell as:

buckminster import "-Dcquery.branch.path=buckminster-41-2"
"all-projects.cquery"

which is OK, as the cquery.branch.path property should equal
buckminster-41-2, and the all-projects.cquery is a different parameter.
The interpretation is OK, however, the property is not used in the
advisor nodes. That is the issue.

Thanks,
Dennis


Tomsen wrote:
> Try enclosing in quotes as in
>
> buckminster import -Dcquery.branch.path="buckminster-41-2
> all-projects.cquery"
>
>
> Does this path really contain the space?
>
> regards tomsen
Previous Topic:What needs to be defined in the target platform
Next Topic:Multiphase creation of update site?
Goto Forum:
  


Current Time: Thu Mar 28 18:19:50 GMT 2024

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

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

Back to the top