Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » [buckminster-dev] Mercurial Reader Type
[buckminster-dev] Mercurial Reader Type [message #633227] Fri, 15 October 2010 18:42 Go to next message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
My organization is interested in using Buckminster with Mercurial and
since I couldn't find any support for Mercurial I decided to write a
reader type myself.

When I click "Resolve and Materialize" on my cquery I get the following error:

No suitable provider for component myproject:osgi.bundle was found in
resourceMap file:/myrmap.rmap

I am not sure where I should be looking to fix this problem. My
bundle is showing up as being installed in the About Eclipse dialog
and there are no errors on startup. I have included what I think of
as the relevant information below.

Thanks,
Phil

My plugin.xml looks like:

<extension
point="org.eclipse.buckminster.core.readerTypes">
<readerType
class="mypackage.buckminster.mercurial.MercurialReaderType"
id="hg"
teamRepositoryId="com.vectrace.MercurialEclipse.team.MercurialTeamProvider ">
</readerType>
</extension>

My cquery looks like:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery
xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap="file:myrmap.rmap">
<cq:rootRequest name="myproject" componentType="osgi.bundle"/>
</cq:componentQuery>

And my rmap looks like:

<?xml version="1.0" encoding="UTF-8"?>
<rm:rmap xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
<rm:searchPath name="default">
<rm:provider readerType="hg"
componentTypes="eclipse.feature,osgi.bundle,buckminster"
source="true">
<rm:uri format="http://10.0.0.1/{0}">
<bc:propertyRef key="buckminster.component" />
</rm:uri>
</rm:provider>
</rm:searchPath>
</rm:rmap>
Re: [buckminster-dev] Mercurial Reader Type [message #633262 is a reply to message #633227] Fri, 15 October 2010 21:36 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Phil,

Your rmap seems to be lacking a locator. It is a necessary link that helps in selecting the correct searchPath during
resolution. The shortest thing you can write is a locator with no pattern match that redirects everything to your
default searchPath, i.e.

<rm:locator searchPathRef="default"/>

Needless to say, we'd be happy to take a look at your 'hg' reader type if you'd consider contributing it to the project.

Regards,
Thomas Hallgren


On 10/15/2010 08:42 PM, Phil Borlin wrote:
> My organization is interested in using Buckminster with Mercurial and
> since I couldn't find any support for Mercurial I decided to write a
> reader type myself.
>
> When I click "Resolve and Materialize" on my cquery I get the following error:
>
> No suitable provider for component myproject:osgi.bundle was found in
> resourceMap file:/myrmap.rmap
>
> I am not sure where I should be looking to fix this problem. My
> bundle is showing up as being installed in the About Eclipse dialog
> and there are no errors on startup. I have included what I think of
> as the relevant information below.
>
> Thanks,
> Phil
>
> My plugin.xml looks like:
>
> <extension
> point="org.eclipse.buckminster.core.readerTypes">
> <readerType
> class="mypackage.buckminster.mercurial.MercurialReaderType"
> id="hg"
> teamRepositoryId="com.vectrace.MercurialEclipse.team.MercurialTeamProvider ">
> </readerType>
> </extension>
>
> My cquery looks like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="file:myrmap.rmap">
> <cq:rootRequest name="myproject" componentType="osgi.bundle"/>
> </cq:componentQuery>
>
> And my rmap looks like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <rm:rmap xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
> <rm:searchPath name="default">
> <rm:provider readerType="hg"
> componentTypes="eclipse.feature,osgi.bundle,buckminster"
> source="true">
> <rm:uri format="http://10.0.0.1/{0}">
> <bc:propertyRef key="buckminster.component" />
> </rm:uri>
> </rm:provider>
> </rm:searchPath>
> </rm:rmap>
Re: [buckminster-dev] Mercurial Reader Type [message #633265 is a reply to message #633262] Fri, 15 October 2010 22:18 Go to previous message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
Hi Thomas,

That fixed that problem even though things are still not behaving
properly. I am going to debug around a bit more before I bring it to
the list though.

I would love to contribute the reader but I will have to run it by the
powers that be around here.

Thanks,
Phil

On Fri, Oct 15, 2010 at 3:36 PM, Thomas Hallgren <thomas@tada.se> wrote:
> Hi Phil,
>
> Your rmap seems to be lacking a locator. It is a necessary link that helps
> in selecting the correct searchPath during resolution. The shortest thing
> you can write is a locator with no pattern match that redirects everything
> to your default searchPath, i.e.
>
> <rm:locator searchPathRef="default"/>
>
> Needless to say, we'd be happy to take a look at your 'hg' reader type if
> you'd consider contributing it to the project.
>
> Regards,
> Thomas Hallgren
>
>
> On 10/15/2010 08:42 PM, Phil Borlin wrote:
>>
>> My organization is interested in using Buckminster with Mercurial and
>> since I couldn't find any support for Mercurial I decided to write a
>> reader type myself.
>>
>> When I click "Resolve and Materialize" on my cquery I get the following
>> error:
>>
>> No suitable provider for component myproject:osgi.bundle was found in
>> resourceMap file:/myrmap.rmap
>>
>> I am not sure where I should be looking to fix this problem.  My
>> bundle is showing up as being installed in the About Eclipse dialog
>> and there are no errors on startup.  I have included what I think of
>> as the relevant information below.
>>
>> Thanks,
>> Phil
>>
>> My plugin.xml looks like:
>>
>> <extension
>>          point="org.eclipse.buckminster.core.readerTypes">
>>       <readerType
>>             class="mypackage.buckminster.mercurial.MercurialReaderType"
>>             id="hg"
>>
>> teamRepositoryId="com.vectrace.MercurialEclipse.team.MercurialTeamProvider ">
>>       </readerType>
>> </extension>
>>
>> My cquery looks like:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <cq:componentQuery
>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>> resourceMap="file:myrmap.rmap">
>>     <cq:rootRequest name="myproject" componentType="osgi.bundle"/>
>> </cq:componentQuery>
>>
>> And my rmap looks like:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <rm:rmap xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0"
>>   xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
>>   <rm:searchPath name="default">
>>     <rm:provider readerType="hg"
>> componentTypes="eclipse.feature,osgi.bundle,buckminster"
>> source="true">
>>       <rm:uri format="http://10.0.0.1/{0}">
>>         <bc:propertyRef key="buckminster.component" />
>>       </rm:uri>
>>     </rm:provider>
>>   </rm:searchPath>
>> </rm:rmap>
>
> _______________________________________________
> buckminster-dev mailing list
> buckminster-dev@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/buckminster-dev
>
Previous Topic:[buckminster-dev] Generated update site causes error on Apache 2.2
Next Topic:Re: [buckminster-dev] Mercurial plugin
Goto Forum:
  


Current Time: Fri Apr 19 16:01:23 GMT 2024

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

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

Back to the top