|
|
|
|
Re: Need a little help getting started [message #378503 is a reply to message #378425] |
Wed, 09 July 2008 23:55 |
Chris Buffington 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 #378520 is a reply to message #378509] |
Tue, 15 July 2008 06:58 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03842 seconds