Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Version confusion
Version confusion [message #375903] Wed, 21 May 2008 09:18 Go to next message
Douglas Palmer is currently offline Douglas PalmerFriend
Messages: 64
Registered: July 2009
Member
Hi

I have been using buckminster headless to create an update site from
eclipse feature on the HEAD of my cvs server. I now want to build an
update site for the version of the feature on a branch. Ideally I'd like
to do this by specifying the cvs tag as part of the buckminster headless
command.

I have tried setting the required version with the
buckminster.version.designator vmarg and adding the following version
converter to the cvs provider in my rmap file:

<versionConverter type="tag">
<transform fromPattern="^0\.5\.1\.qualifier$"
fromReplacement="IDT_0_5_1_release" toPattern="^IDT_0_5_1_release$"
toReplacement="0.5.1.qualifier" />
<transform fromPattern="^0\.5\.2.qualifier$"
fromReplacement="IDT_0_5_2_release" toPattern="^IDT_0_5_2_release$"
toReplacement="0.5.2.qualifier" />
<transform fromPattern="^0\.5\.3.qualifier$"
fromReplacement="IDT_0_5_3_release" toPattern="^IDT_0_5_3_release$"
toReplacement="0.5.3.qualifier" />
</versionConverter>

However when I resolve the query with '-vmargs -D
buckminster.version.designator=0.5.3.qualifier' buckminster materialises
the code from the tag IDT_0_5_1_release. It appears the the version
reaching the converter is null and the first suitable tag is used instead.
How can I specify which tag to checkout from cvs?

Regards
Doug
Re: Version confusion [message #375904 is a reply to message #375903] Wed, 21 May 2008 12:19 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Douglas,
You need to declare the version designator in your CQUERY. Passing it as
a system property will not work.

Regards,
Thomas Hallgren

Douglas Palmer wrote:
> Hi
>
> I have been using buckminster headless to create an update site from
> eclipse feature on the HEAD of my cvs server. I now want to build an
> update site for the version of the feature on a branch. Ideally I'd
> like to do this by specifying the cvs tag as part of the buckminster
> headless command.
>
> I have tried setting the required version with the
> buckminster.version.designator vmarg and adding the following version
> converter to the cvs provider in my rmap file:
>
> <versionConverter type="tag">
> <transform fromPattern="^0\.5\.1\.qualifier$"
> fromReplacement="IDT_0_5_1_release" toPattern="^IDT_0_5_1_release$"
> toReplacement="0.5.1.qualifier" />
> <transform fromPattern="^0\.5\.2.qualifier$"
> fromReplacement="IDT_0_5_2_release" toPattern="^IDT_0_5_2_release$"
> toReplacement="0.5.2.qualifier" />
> <transform fromPattern="^0\.5\.3.qualifier$"
> fromReplacement="IDT_0_5_3_release" toPattern="^IDT_0_5_3_release$"
> toReplacement="0.5.3.qualifier" />
> </versionConverter>
>
> However when I resolve the query with '-vmargs -D
> buckminster.version.designator=0.5.3.qualifier' buckminster materialises
> the code from the tag IDT_0_5_1_release. It appears the the version
> reaching the converter is null and the first suitable tag is used
> instead. How can I specify which tag to checkout from cvs?
>
> Regards
> Doug
>
Re: Version confusion [message #375905 is a reply to message #375904] Wed, 21 May 2008 12:22 Go to previous messageGo to next message
Douglas Palmer is currently offline Douglas PalmerFriend
Messages: 64
Registered: July 2009
Member
Hi Thomas

Doesn't this mean that I need a new cquery for every branch/tag that I
want to build? Is there any mechanism that would allow me to use the same
buckminster maps/queries to build multiple branches/tags?

Regards
Doug
Re: Version confusion [message #375906 is a reply to message #375905] Wed, 21 May 2008 12:31 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Douglas Palmer wrote:
> Hi Thomas
>
> Doesn't this mean that I need a new cquery for every branch/tag that I
> want to build?

Yes, that's per design. The cquery is the mechanism you use to control
the resolution and hence, the place where you put information about
branches and tags.

If you have suggestions on how to improve this to cover your use-case,
we are of course interested in hearing about it.

> Is there any mechanism that would allow me to use the
> same buckminster maps/queries to build multiple branches/tags?
>
You can use different branches/tags on different components (using
advisory nodes) but you can't make the query map different branches at
different times.

Regards,
Thomas Hallgren
Re: Version confusion [message #375907 is a reply to message #375906] Wed, 21 May 2008 12:49 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Thomas Hallgren wrote:
> You can use different branches/tags on different components (using
> advisory nodes) but you can't make the query map different branches at
> different times.
>
Is it possible to solve this by using properties in the query?
Wouldn't that create a "parameterized query"?
Re: Version confusion [message #375908 is a reply to message #375906] Wed, 21 May 2008 12:59 Go to previous messageGo to next message
Douglas Palmer is currently offline Douglas PalmerFriend
Messages: 64
Registered: July 2009
Member
Ok, thanks Thomas. I'll store the relevant cquery on the branch and check
that out before resolving.

Regards
Doug
Re: Version confusion [message #375909 is a reply to message #375907] Wed, 21 May 2008 13:03 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Henrik,
do you mean making the version designators of the CQUERY subject to
parameter substitution? If so, that begs the question; what other
attributes of the CQUERY and it's nodes should be subject to that? All
of them?

I'm not saying it would be a bad thing but we need to think carefully
about the property scope used for the substitution and when the
substitution takes place.

Regards,
Thomas Hallgren


Henrik Lindberg wrote:
> Thomas Hallgren wrote:
>> You can use different branches/tags on different components (using
>> advisory nodes) but you can't make the query map different branches at
>> different times.
>>
> Is it possible to solve this by using properties in the query?
> Wouldn't that create a "parameterized query"?
Re: Version confusion [message #375910 is a reply to message #375907] Wed, 21 May 2008 13:26 Go to previous messageGo to next message
Douglas Palmer is currently offline Douglas PalmerFriend
Messages: 64
Registered: July 2009
Member
Hi Henrik

I tried changing the versionDesignator in my cquery to ${idtVersion} and
using -vmargs -DidtVersion=0.6.0.qualifier. However the property doesn't
get expanded and buckminster tries to find a feature with a version
${idtVersion}.

Is this what you had in mind or did I miss the point?

Regards
Doug
Is it possible... [message #375911 is a reply to message #375903] Wed, 21 May 2008 14:46 Go to previous messageGo to next message
Douglas Palmer is currently offline Douglas PalmerFriend
Messages: 64
Registered: July 2009
Member
Hello again

Is it possible to specify the branch tag as part of the cvs provider uri?
Then I could use property replacement to generalise my build.

Regards
Doug
Re: Version confusion [message #375912 is a reply to message #375910] Wed, 21 May 2008 14:56 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Douglas Palmer wrote:
> Hi Henrik
>
> I tried changing the versionDesignator in my cquery to ${idtVersion} and
> using -vmargs -DidtVersion=0.6.0.qualifier. However the property
> doesn't get expanded and buckminster tries to find a feature with a
> version ${idtVersion}.
>
> Is this what you had in mind or did I miss the point?

That's what I had in mind, and did not know if it worked or not... Now
we know ;)

Regards
- henrik
Previous Topic:MSpec schema problem
Next Topic:Imported Project's Name Issue
Goto Forum:
  


Current Time: Fri Apr 26 22:33:52 GMT 2024

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

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

Back to the top