Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Need a little help getting started
Need a little help getting started [message #378418] Mon, 07 July 2008 23:56 Go to next message
Chris Buffington is currently offline Chris BuffingtonFriend
Messages: 4
Registered: July 2009
Junior Member
I've read through much of the Buckminster documentation and I'm still
having trouble preparing a CQUERY and RMAP that will materialize my
project.

I wanted to start small so I chose a basic Java project that has two
classes and various dependencies. I created a local svn repository and
placed the entire project in it. Next form the examples I created and RMAP
that I thing points to the source in svn and a CQUERY that points to the
RMAP. When I use the "Resolve To Wizard" button I only see the top level
component and noting else (no BOM). Obviously I'm missing something in my
RMAP.

If I wanted to only materialize all files in the source folder of my svn
repository, which are java files, what would my uri and locator blocks
look like?

Here is what I have:
<uri format="file://c:/svn/trunk/test/src/{*}">
<bc:propertyRef key="unknown" />
</uri>
...
<locator searchPathRef="default" pattern="^*" />
Re: Need a little help getting started [message #378422 is a reply to message #378418] Tue, 08 July 2008 06:20 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
Chris Buffington wrote:
> I've read through much of the Buckminster documentation and I'm still
> having trouble preparing a CQUERY and RMAP that will materialize my
> project.
>
> I wanted to start small so I chose a basic Java project that has two
> classes and various dependencies. I created a local svn repository and
> placed the entire project in it. Next form the examples I created and
> RMAP that I thing points to the source in svn and a CQUERY that points
> to the RMAP. When I use the "Resolve To Wizard" button I only see the
> top level component and noting else (no BOM). Obviously I'm missing
> something in my RMAP.
>
> If I wanted to only materialize all files in the source folder of my svn
> repository, which are java files, what would my uri and locator blocks
> look like?
>
> Here is what I have:
> <uri format="file://c:/svn/trunk/test/src/{*}">
> <bc:propertyRef key="unknown" />
> </uri>
> ...
> <locator searchPathRef="default" pattern="^*" />
>

Hi,

what is it you see in the console with logging set to debug?
And how does the directory structure look like on disk/svn?

I'd have written the RMAP like this (untested).

<provider readerType="svn" componentTypes="unknown" mutable="true"
source="true">
<uri format="file:///c:/svn/trunk/test/src/{0}">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>

Markus
Re: Need a little help getting started [message #378425 is a reply to message #378422] Tue, 08 July 2008 15:26 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip HrbekFriend
Messages: 233
Registered: July 2009
Senior Member
Hi Chris,

if you see the top component only without any dependencies but no errors
then Buckminster probably does not know about the dependencies. If your
project is not an OSGi plug-in, try adding the "buckminster.cspec" file
into the project root folder and modify your RMAP so that it would look
for the "buckminster" component type:

<provider readerType="svn" componentTypes="buckminster" mutable="true"
source="true">

You should find some information about how the buckminster.cspec file
should be structured in the Buckminster documentation. It simply defines
the component name, version and dependencies in its simplest form.

Another question is what components your project depends on and where
these components can be obtained. According to what the answer on this
question is, you should also add appropriate locators and providers to
your RMAP file.

Regards
Filip Hrbek

Markus Alexander Kuppe napsal(a):
> Chris Buffington wrote:
>> I've read through much of the Buckminster documentation and I'm still
>> having trouble preparing a CQUERY and RMAP that will materialize my
>> project.
>>
>> I wanted to start small so I chose a basic Java project that has two
>> classes and various dependencies. I created a local svn repository and
>> placed the entire project in it. Next form the examples I created and
>> RMAP that I thing points to the source in svn and a CQUERY that points
>> to the RMAP. When I use the "Resolve To Wizard" button I only see the
>> top level component and noting else (no BOM). Obviously I'm missing
>> something in my RMAP.
>>
>> If I wanted to only materialize all files in the source folder of my
>> svn repository, which are java files, what would my uri and locator
>> blocks look like?
>>
>> Here is what I have:
>> <uri format="file://c:/svn/trunk/test/src/{*}">
>> <bc:propertyRef key="unknown" />
>> </uri>
>> ...
>> <locator searchPathRef="default" pattern="^*" />
>>
>
> Hi,
>
> what is it you see in the console with logging set to debug?
> And how does the directory structure look like on disk/svn?
>
> I'd have written the RMAP like this (untested).
>
> <provider readerType="svn" componentTypes="unknown" mutable="true"
> source="true">
> <uri format="file:///c:/svn/trunk/test/src/{0}">
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
>
> Markus
Re: Need a little help getting started [message #378501 is a reply to message #378422] Wed, 09 July 2008 22:53 Go to previous messageGo to next message
Chris Buffington is currently offline Chris BuffingtonFriend
Messages: 4
Registered: July 2009
Junior Member
Markus Alexander Kuppe wrote:

> Chris Buffington wrote:
>> I've read through much of the Buckminster documentation and I'm still
>> having trouble preparing a CQUERY and RMAP that will materialize my
>> project.
>>
>> I wanted to start small so I chose a basic Java project that has two
>> classes and various dependencies. I created a local svn repository and
>> placed the entire project in it. Next form the examples I created and
>> RMAP that I thing points to the source in svn and a CQUERY that points
>> to the RMAP. When I use the "Resolve To Wizard" button I only see the
>> top level component and noting else (no BOM). Obviously I'm missing
>> something in my RMAP.
>>
>> If I wanted to only materialize all files in the source folder of my svn
>> repository, which are java files, what would my uri and locator blocks
>> look like?
>>
>> Here is what I have:
>> <uri format="file://c:/svn/trunk/test/src/{*}">
>> <bc:propertyRef key="unknown" />
>> </uri>
>> ...
>> <locator searchPathRef="default" pattern="^*" />
>>

> Hi,

> what is it you see in the console with logging set to debug?
> And how does the directory structure look like on disk/svn?

> I'd have written the RMAP like this (untested).

> <provider readerType="svn" componentTypes="unknown" mutable="true"
> source="true">
> <uri format="file:///c:/svn/trunk/test/src/{0}">
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>

> Markus

Thanks for your reply.

I tried you suggestions but they I still did not get the result I
expected. I decided to change the project I was working on to something
much more simple. Now the project is a basic Java project with a single
class, test.java, and no dependancies. My goal is to materialize this
single file before I move on.

So, in svn the file structure is C:\svn\trunk\test\src\test.java.
Obviously since it is in Subversion I can't browse that path but can use
svn list to see the file at that location.

I also followed the advice of Filip Hrbek as posted but still no luck.
Re: Need a little help getting started [message #378503 is a reply to message #378425] Wed, 09 July 2008 23:55 Go to previous messageGo to next message
Chris Buffington is currently offline Chris BuffingtonFriend
Messages: 4
Registered: July 2009
Junior Member
Thanks for the suggestion Filip.

As you can see in my reply to Markus, I changed my project a little.
However, even in the original post my goal was only to get the .java files
and work my way up to the dependencies. What I expected was that I could
point the CQUERY and RMAP at the svn location and Buckminster would
download the file and place it on the local disk somewhere.

With that little background out of the way, My project is not an OSGi
plug-in so I added the "buckminster.cspec" to it and committed it to the
repository at the root. Still no luck.

Next, i went throug the Spaces Project Setup Document and mad some changes
based on their CSPEC, RMAP, and CQUERY. I still can get the file to
materialize but at least get some information in the console that my
help. Can you look it over and make any suggestion.

test:buckminster: Using resolver rmap
test:buckminster: Using resource map
file:/C:/Documents%20and%20Settings/buffingtonc/workspace/te st/new_rmap.rmap
test:buckminster: Using search path default
test:buckminster: Trying provider svn(file://c:/svn/trunk/test/src{0})
test:buckminster: trunk/head will be searched
Listing remote folder file://c/svn/trunk/test#HEAD
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
test:buckminster: Rejecting provider svn(file://c:/svn/trunk/test/src{0}):
No component match was found
test:buckminster: No provider was found that could resolve the request
ERROR [0001] : No suitable provider for component test:buckminster was
found in searchPath default
ERROR [0001] : Rejecting provider
svn(file://c:/svn/trunk/test/src{0}): No component match was found

this is the structure of the project in svn:
C:\Documents and Settings\buffingtonc>svn list -R file:///c:/svn/trunk/test
buckminster.cspec
new_rmap.rmap
src/
src/test.java
test.cquery

Filip Hrbek wrote:

> Hi Chris,

> if you see the top component only without any dependencies but no errors
> then Buckminster probably does not know about the dependencies. If your
> project is not an OSGi plug-in, try adding the "buckminster.cspec" file
> into the project root folder and modify your RMAP so that it would look
> for the "buckminster" component type:

> <provider readerType="svn" componentTypes="buckminster" mutable="true"
> source="true">

> You should find some information about how the buckminster.cspec file
> should be structured in the Buckminster documentation. It simply defines
> the component name, version and dependencies in its simplest form.

> Another question is what components your project depends on and where
> these components can be obtained. According to what the answer on this
> question is, you should also add appropriate locators and providers to
> your RMAP file.

> Regards
> Filip Hrbek

> Markus Alexander Kuppe napsal(a):
>> Chris Buffington wrote:
>>> I've read through much of the Buckminster documentation and I'm still
>>> having trouble preparing a CQUERY and RMAP that will materialize my
>>> project.
>>>
>>> I wanted to start small so I chose a basic Java project that has two
>>> classes and various dependencies. I created a local svn repository and
>>> placed the entire project in it. Next form the examples I created and
>>> RMAP that I thing points to the source in svn and a CQUERY that points
>>> to the RMAP. When I use the "Resolve To Wizard" button I only see the
>>> top level component and noting else (no BOM). Obviously I'm missing
>>> something in my RMAP.
>>>
>>> If I wanted to only materialize all files in the source folder of my
>>> svn repository, which are java files, what would my uri and locator
>>> blocks look like?
>>>
>>> Here is what I have:
>>> <uri format="file://c:/svn/trunk/test/src/{*}">
>>> <bc:propertyRef key="unknown" />
>>> </uri>
>>> ...
>>> <locator searchPathRef="default" pattern="^*" />
>>>
>>
>> Hi,
>>
>> what is it you see in the console with logging set to debug?
>> And how does the directory structure look like on disk/svn?
>>
>> I'd have written the RMAP like this (untested).
>>
>> <provider readerType="svn" componentTypes="unknown" mutable="true"
>> source="true">
>> <uri format="file:///c:/svn/trunk/test/src/{0}">
>> <bc:propertyRef key="buckminster.component" />
>> </uri>
>> </provider>
>>
>> Markus
Re: Need a little help getting started [message #378505 is a reply to message #378503] Thu, 10 July 2008 08:21 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Chris,

Chris Buffington wrote:

> svn(file://c:/svn/trunk/test/src{0}): No component match was found
>
Try inserting a slash between src and {0} in your RMAP.

Regards,
Thomas Hallgren
Re: Need a little help getting started [message #378509 is a reply to message #378505] Thu, 10 July 2008 14:45 Go to previous messageGo to next message
Chris Buffington is currently offline Chris BuffingtonFriend
Messages: 4
Registered: July 2009
Junior Member
Thomas Hallgren wrote:

> Hi Chris,

> Chris Buffington wrote:

>> svn(file://c:/svn/trunk/test/src{0}): No component match was found
>>
> Try inserting a slash between src and {0} in your RMAP.

> Regards,
> Thomas Hallgren
Thanks that helps a little, but I'm still getting some errors:
CQUERY Context URL set to
file:/C:/Documents%20and%20Settings/buffingtonc/workspace/te st/test.cquery
Platform install location: D:\eclipse
Target platform provided by class
org.eclipse.buckminster.pde.internal.PDETargetPlatform
test:buckminster: Using resolver rmap
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
test:buckminster: Using resource map
file:/C:/Documents%20and%20Settings/buffingtonc/workspace/te st/new_rmap.rmap
test:buckminster: Using search path default
test:buckminster: Trying provider svn(file://c:/svn/trunk/test/src/{0})
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
test:buckminster: trunk/head will be searched
Listing remote folder file://c/svn/trunk/test/src#HEAD
blocked(class org.eclipse.core.internal.events.AutoBuildJob[Building
workspace])
test:buckminster: Rejecting provider
svn(file://c:/svn/trunk/test/src/{0}): No component match was found
test:buckminster: No provider was found that could resolve the request
ERROR [0001] : No suitable provider for component test:buckminster was
found in searchPath default
ERROR [0001] : Rejecting provider
svn(file://c:/svn/trunk/test/src/{0}): No component match was found
Re: Need a little help getting started [message #378512 is a reply to message #378509] Fri, 11 July 2008 13:31 Go to previous messageGo to next message
Adrian Skehill is currently offline Adrian SkehillFriend
Messages: 55
Registered: July 2009
Member
Hi Chris,

> ERROR [0001] : No suitable provider for component test:buckminster was
> found in searchPath default
> ERROR [0001] : Rejecting provider
> svn(file://c:/svn/trunk/test/src/{0}): No component match was found

This would indicate that Buckminster got a request to resolve
"test:buckminster" butthat component is either
1. not present in the src tree
2. not in a format that Buckminster recognises.

For 2, make sure that your searchPath indicates the type of components
that can be resovled by it. If it's an OSGi plugin, Buckminster will
expect to find OSGi bundles in that directory, otherwise you can call it
a buckminster component and it will look for that directory plug a
buckminster.cspec file in there to know what to do with it.

To help you more, would it be possible to post up your cquery and rmap
files here and the a listing of what's in your src tree?

Cheers,
Adrian.
Re: Need a little help getting started [message #378520 is a reply to message #378509] Tue, 15 July 2008 06:58 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Chris,
It looks like Buckminster searches for a component named 'test' with the
component type 'buckminster'. The buckminster component type will try to
extract meta-data assuming that the root folder contains a valid
Buckminster Component Specification in a file named 'buckminster.cspec'.

If you don't have any meta-data available, you can try to use the
component type 'unknown' instead of 'buckminster' in your CQUERY. The
RMAP provider must support the component type that you are requesting.

Regards,
Thomas Hallgren
Previous Topic:Learning Buckminster by Example: Real Eclipse Projects
Next Topic:'No component match was found' error - Resolve to Wizard
Goto Forum:
  


Current Time: Wed Sep 18 23:49:42 GMT 2024

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

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

Back to the top