Home » Archived » Buckminster » svn branch tag setup
|
Re: svn branch tag setup [message #379293 is a reply to message #379292] |
Tue, 19 August 2008 12:47 |
|
Hi Fabrice,
You're on the right track if you're experimenting with the svn reader in
combination with a version converter.
Can you tell us a bit more about what problems you are facing? What kind
of structure do you have in your SVN repo?
Regards,
Thomas Hallgren
fabrice macagno wrote:
> Hi,
> I'm quiet new to buckminster. I would like to use the version specified in
> the cquery version designator to materialize the corresponding tag in the
> svn repository. I've tried to find some documentation and I've found that:
> http://wiki.eclipse.org/Buckminster_SVN_Reader
> http://wiki.eclipse.org/Buckminster_component_meta-data_lang uage_(Reference)_-_LATEST#VersionConverter_component
> But I'm not beeing able to get what I want so I just wanted to know if there
> are some examples on how to use this? Does the svn repository need to have
> a particular layout under the trunk/branches/tags directories?
>
> Thanks!
> Fabrice
|
|
|
Re: svn branch tag setup [message #379294 is a reply to message #379293] |
Tue, 19 August 2008 13:48 |
fabrice macagno Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Well, I've tried different options. Let's talk about one of these:
* in the component query I've got a simple osgi version, say 2.27.4
* in the ressource map I've got:
<searchPath name="marny">
<provider readerType="svn" componentTypes="buckminster" mutable="true"
source="true">
<uri format="https://{0}
{1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny">
<bc:propertyRef key="svn.login"/>
<bc:propertyRef key="svn.passwd"/>
</uri>
<versionConverter type="tag" versionType="OSGi">
</versionConverter>
</provider>
</searchPath>
I don't use a transform because I'm requesting version 1.0.0 and I want to
use it like this.
* in the repository, under the trunk directory, we've got different projects
and the one I'm interested in is under:
/repos/trunk/plugins/maya/arnold/marny
I've got a tag for version 2.27.4 under:
/repos/tags/marny/2.27.4
In the doc, there are some flags like "moduleBeforeTag" but I don't know how
to use them.
* the error I get is:
marny:buckminster/[2.27.4,2.27.4]#OSGi: Using search path marny
marny:buckminster/[2.27.4,2.27.4]#OSGi: Trying provider svn(https://{0}
{1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny)
marny:buckminster/[2.27.4,2.27.4]#OSGi: Using version converter tag.
trunk/head will not be considered
marny:buckminster/[2.27.4,2.27.4]#OSGi: tags will be searched
Listing remote folder https://svn.site.fr/repos/tags#HEAD
marny:buckminster/[2.27.4,2.27.4]#OSGi: Rejecting provider svn(https://{0}
{1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny): No component match
was found
marny:buckminster/[2.27.4,2.27.4]#OSGi: No provider was found that could
resolve the request
I'm sure I've made something wrong but the explanations are not easy to
understand for me.
Thomas Hallgren wrote:
> Hi Fabrice,
> You're on the right track if you're experimenting with the svn reader in
> combination with a version converter.
>
> Can you tell us a bit more about what problems you are facing? What kind
> of structure do you have in your SVN repo?
>
> Regards,
> Thomas Hallgren
>
>
> fabrice macagno wrote:
>> Hi,
>> I'm quiet new to buckminster. I would like to use the version specified
>> in the cquery version designator to materialize the corresponding tag in
>> the svn repository. I've tried to find some documentation and I've found
>> that: http://wiki.eclipse.org/Buckminster_SVN_Reader
>>
http://wiki.eclipse.org/Buckminster_component_meta-data_lang uage_(Reference)_-_LATEST#VersionConverter_component
>> But I'm not beeing able to get what I want so I just wanted to know if
>> there are some examples on how to use this? Does the svn repository need
>> to have a particular layout under the trunk/branches/tags directories?
>>
>> Thanks!
>> Fabrice
|
|
|
Re: svn branch tag setup [message #379295 is a reply to message #379294] |
Tue, 19 August 2008 14:29 |
|
Hi Fabrice,
From the looks of it, the structure under a specific tag does not
correspond to the structure under trunk.
Buckminster assumes that what you have just below trunk is the same as
you would have just below a tag, i.e.
repos/trunk/plugins/maya/arnold/marny
would correspond to
repos/tags/1.0.0/plugins/maya/arnold/marny (moduleAfterTag)
or
repos/tags/plugins/maya/arnold/marny/1.0.0 (moduleBeforeTag)
In short, Buckminster assumes that what you have under tags are tagged
versions of modules under trunk.
That said, you can trick Buckminster into looking at the right place.
When you use a versionConverter, Buckminster will not actually look
under trunk. It uses the uri as a template and the keyword trunk as the
significant entry where the module starts. So try this:
<searchPath name="marny">
<provider readerType="svn" componentTypes="buckminster"
mutable="true" source="true">
<uri
format=" https://{0}{1}@svn.site.fr/repos/trunk/marny?moduleBeforeTag">
<bc:propertyRef key="svn.login"/>
<bc:propertyRef key="svn.passwd"/>
</uri>
<versionConverter type="tag" versionType="OSGi"/>
</provider>
</searchPath>
Regards,
Thomas Hallgren
P.S.
A very common way of mapping components is to let the name of the last
path element be equal to the name of the component. The uri can then be
improved to read:
<uri
format="https://{0}{1}@svn.site.fr/repos/trunk/{2}?moduleBeforeTag">
<bc:propertyRef key="svn.login"/>
<bc:propertyRef key="svn.passwd"/>
<bc:propertyRef key="buckminster.component"/>
</uri>
which makes it possible to use it for more then one component.
fabrice macagno wrote:
> Well, I've tried different options. Let's talk about one of these:
>
> * in the component query I've got a simple osgi version, say 2.27.4
> * in the ressource map I've got:
> <searchPath name="marny">
> <provider readerType="svn" componentTypes="buckminster" mutable="true"
> source="true">
> <uri format="https://{0}
> {1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny">
> <bc:propertyRef key="svn.login"/>
> <bc:propertyRef key="svn.passwd"/>
> </uri>
> <versionConverter type="tag" versionType="OSGi">
> </versionConverter>
> </provider>
> </searchPath>
> I don't use a transform because I'm requesting version 1.0.0 and I want to
> use it like this.
> * in the repository, under the trunk directory, we've got different projects
> and the one I'm interested in is under:
> /repos/trunk/plugins/maya/arnold/marny
> I've got a tag for version 2.27.4 under:
> /repos/tags/marny/2.27.4
> In the doc, there are some flags like "moduleBeforeTag" but I don't know how
> to use them.
> * the error I get is:
> marny:buckminster/[2.27.4,2.27.4]#OSGi: Using search path marny
> marny:buckminster/[2.27.4,2.27.4]#OSGi: Trying provider svn(https://{0}
> {1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny)
> marny:buckminster/[2.27.4,2.27.4]#OSGi: Using version converter tag.
> trunk/head will not be considered
> marny:buckminster/[2.27.4,2.27.4]#OSGi: tags will be searched
> Listing remote folder https://svn.site.fr/repos/tags#HEAD
> marny:buckminster/[2.27.4,2.27.4]#OSGi: Rejecting provider svn(https://{0}
> {1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny): No component match
> was found
> marny:buckminster/[2.27.4,2.27.4]#OSGi: No provider was found that could
> resolve the request
>
> I'm sure I've made something wrong but the explanations are not easy to
> understand for me.
>
>
> Thomas Hallgren wrote:
>
>> Hi Fabrice,
>> You're on the right track if you're experimenting with the svn reader in
>> combination with a version converter.
>>
>> Can you tell us a bit more about what problems you are facing? What kind
>> of structure do you have in your SVN repo?
>>
>> Regards,
>> Thomas Hallgren
>>
>>
>> fabrice macagno wrote:
>>> Hi,
>>> I'm quiet new to buckminster. I would like to use the version specified
>>> in the cquery version designator to materialize the corresponding tag in
>>> the svn repository. I've tried to find some documentation and I've found
>>> that: http://wiki.eclipse.org/Buckminster_SVN_Reader
>>>
> http://wiki.eclipse.org/Buckminster_component_meta-data_lang uage_(Reference)_-_LATEST#VersionConverter_component
>>> But I'm not beeing able to get what I want so I just wanted to know if
>>> there are some examples on how to use this? Does the svn repository need
>>> to have a particular layout under the trunk/branches/tags directories?
>>>
>>> Thanks!
>>> Fabrice
>
|
|
|
Re: svn branch tag setup [message #379296 is a reply to message #379295] |
Tue, 19 August 2008 14:44 |
fabrice macagno Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Bingo: that's what I was missing: marny?moduleBeforeTag.
Thanks for your help and for the tip about using the buckminster.component property.
Cheers
Thomas Hallgren wrote:
> Hi Fabrice,
> From the looks of it, the structure under a specific tag does not
> correspond to the structure under trunk.
>
> Buckminster assumes that what you have just below trunk is the same as
> you would have just below a tag, i.e.
>
> repos/trunk/plugins/maya/arnold/marny
>
> would correspond to
>
> repos/tags/1.0.0/plugins/maya/arnold/marny (moduleAfterTag)
>
> or
>
> repos/tags/plugins/maya/arnold/marny/1.0.0 (moduleBeforeTag)
>
> In short, Buckminster assumes that what you have under tags are tagged
> versions of modules under trunk.
>
> That said, you can trick Buckminster into looking at the right place.
> When you use a versionConverter, Buckminster will not actually look
> under trunk. It uses the uri as a template and the keyword trunk as the
> significant entry where the module starts. So try this:
>
> <searchPath name="marny">
> <provider readerType="svn" componentTypes="buckminster"
> mutable="true" source="true">
> <uri
> format=" https://{0}{1}@svn.site.fr/repos/trunk/marny?moduleBeforeTag">
> <bc:propertyRef key="svn.login"/>
> <bc:propertyRef key="svn.passwd"/>
> </uri>
> <versionConverter type="tag" versionType="OSGi"/>
> </provider>
> </searchPath>
>
>
> Regards,
> Thomas Hallgren
>
> P.S.
> A very common way of mapping components is to let the name of the last
> path element be equal to the name of the component. The uri can then be
> improved to read:
>
> <uri
> format="https://{0}{1}@svn.site.fr/repos/trunk/{2}?moduleBeforeTag">
> <bc:propertyRef key="svn.login"/>
> <bc:propertyRef key="svn.passwd"/>
> <bc:propertyRef key="buckminster.component"/>
> </uri>
>
> which makes it possible to use it for more then one component.
>
>
> fabrice macagno wrote:
>> Well, I've tried different options. Let's talk about one of these:
>>
>> * in the component query I've got a simple osgi version, say 2.27.4
>> * in the ressource map I've got:
>> <searchPath name="marny">
>> <provider readerType="svn" componentTypes="buckminster"
>> mutable="true"
>> source="true">
>> <uri format="https://{0}
>> {1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny">
>> <bc:propertyRef key="svn.login"/>
>> <bc:propertyRef key="svn.passwd"/>
>> </uri>
>> <versionConverter type="tag" versionType="OSGi">
>> </versionConverter>
>> </provider>
>> </searchPath>
>> I don't use a transform because I'm requesting version 1.0.0 and I want
>> to use it like this.
>> * in the repository, under the trunk directory, we've got different
>> projects and the one I'm interested in is under:
>> /repos/trunk/plugins/maya/arnold/marny
>> I've got a tag for version 2.27.4 under:
>> /repos/tags/marny/2.27.4
>> In the doc, there are some flags like "moduleBeforeTag" but I don't know
>> how to use them.
>> * the error I get is:
>> marny:buckminster/[2.27.4,2.27.4]#OSGi: Using search path marny
>> marny:buckminster/[2.27.4,2.27.4]#OSGi: Trying provider svn(https://{0}
>> {1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny)
>> marny:buckminster/[2.27.4,2.27.4]#OSGi: Using version converter tag.
>> trunk/head will not be considered
>> marny:buckminster/[2.27.4,2.27.4]#OSGi: tags will be searched
>> Listing remote folder https://svn.site.fr/repos/tags#HEAD
>> marny:buckminster/[2.27.4,2.27.4]#OSGi: Rejecting provider
>> svn(https://{0}
>> {1}@svn.site.fr/repos/trunk/plugins/maya/arnold/marny): No component
>> {match
>> was found
>> marny:buckminster/[2.27.4,2.27.4]#OSGi: No provider was found that could
>> resolve the request
>>
>> I'm sure I've made something wrong but the explanations are not easy to
>> understand for me.
>>
>>
>> Thomas Hallgren wrote:
>>
>>> Hi Fabrice,
>>> You're on the right track if you're experimenting with the svn reader in
>>> combination with a version converter.
>>>
>>> Can you tell us a bit more about what problems you are facing? What kind
>>> of structure do you have in your SVN repo?
>>>
>>> Regards,
>>> Thomas Hallgren
>>>
>>>
>>> fabrice macagno wrote:
>>>> Hi,
>>>> I'm quiet new to buckminster. I would like to use the version specified
>>>> in the cquery version designator to materialize the corresponding tag
>>>> in the svn repository. I've tried to find some documentation and I've
>>>> found that: http://wiki.eclipse.org/Buckminster_SVN_Reader
>>>>
>> http://wiki.eclipse.org/Buckminster_component_meta-data_lang uage_(Reference)_-_LATEST#VersionConverter_component
>>>> But I'm not beeing able to get what I want so I just wanted to know if
>>>> there are some examples on how to use this? Does the svn repository
>>>> need to have a particular layout under the trunk/branches/tags
>>>> directories?
>>>>
>>>> Thanks!
>>>> Fabrice
>>
|
|
|
Goto Forum:
Current Time: Wed Sep 18 23:43:48 GMT 2024
Powered by FUDForum. Page generated in 0.03246 seconds
|