Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » workspace.root resolution
workspace.root resolution [message #542063] Wed, 23 June 2010 17:07 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 526
Registered: November 2009
Senior Member
Hello,

In my rmap I define provider like this:
Quote:

<provider readerType="local" componentTypes="osgi.bundle"
mutable="true" source="true">
<uri format="file:///{0}/user/{1}">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>


When I run this on windows workspace.root resolves correctly to my hudson workspace location, on linux however I get error:
Quote:

ERROR [0001] : Resolution attempt ended with exception: java.net.UnknownHostException: home


If I change uri format to
Quote:

<uri format="file://{0}/user/{1}">


Then on linux it workspace.root resolves correctly, but on windows I get similar exception:
Quote:

ERROR [0001] : Resolution attempt ended with exception: java.net.UnknownHostException: F



thanks,
Alex
Re: workspace.root resolution [message #542112 is a reply to message #542063] Wed, 23 June 2010 21:18 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Alex,

I think the local reader will be able to use a path instead of a URI, i.e.

"{0}/user/{1}"

- thomas




On 06/23/2010 07:07 PM, Alex wrote:
> Hello,
>
> In my rmap I define provider like this:
> Quote:
>> <provider readerType="local" componentTypes="osgi.bundle"
>> mutable="true" source="true">
>> <uri format="file:///{0}/user/{1}">
>> <bc:propertyRef key="workspace.root" /> <bc:propertyRef
>> key="buckminster.component" />
>> </uri>
>> </provider>
>
> When I run this on windows workspace.root resolves correctly to my
> hudson workspace location, on linux however I get error:
> Quote:
>> ERROR [0001] : Resolution attempt ended with exception:
>> java.net.UnknownHostException: home
>
> If I change uri format to
> Quote:
>> <uri format="file://{0}/user/{1}">
>
> Then on linux it workspace.root resolves correctly, but on windows I get
> similar exception:
> Quote:
>> ERROR [0001] : Resolution attempt ended with exception:
>> java.net.UnknownHostException: F
>
>
> thanks,
> Alex
>
Re: workspace.root resolution [message #542393 is a reply to message #542112] Thu, 24 June 2010 17:02 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 526
Registered: November 2009
Senior Member
Thanks Thomas!
Previous Topic:Missing CSpec source required by component type osgi.bundle for local reader
Next Topic:Suppress build warnings
Goto Forum:
  


Current Time: Sun Apr 22 12:59:00 GMT 2018

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

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