Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » RMap redirect breaks searchPath overlap
RMap redirect breaks searchPath overlap [message #515049] Wed, 17 February 2010 15:02 Go to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
Hi,

following construct:

A.rmap
----
<searchPath name="org.eclipse.ecf.osu">
...
</searchPath>


<locator
searchPathRef="org.eclipse.ecf.osu"
pattern="^org\.eclipse\.ecf(\..+)?" />

<redirect href="http://path/to/B.rmap
pattern=".*" />

B.rmap
----
<searchPath name="org.eclipse.ecf">
...
</searchPath>

<locator
searchPathRef="org.eclipse.ecf"
pattern="^org\.eclipse\.ecf(\..+)?" />


Unless I limit the scope of the first searchPathRef to exactly what is
supposed to be found in A, B is not called.

Bug?

Thanks
Markus
Re: RMap redirect breaks searchPath overlap [message #515080 is a reply to message #515049] Wed, 17 February 2010 16:34 Go to previous messageGo to next message
John is currently offline JohnFriend
Messages: 107
Registered: July 2009
Senior Member
Hi Markus!

If you don't have a pattern the locator will match everything.
The default behavior is to fail if it doesn't find anything.
By adding the pattern you only go there if you know it's supposed to find it there.
Alternatively you can add a failOnError="false" to the locator, then it will continue to your redirect if it doesn't find what it's looking for.

/John
Re: RMap redirect breaks searchPath overlap [message #515088 is a reply to message #515049] Wed, 17 February 2010 16:47 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 02/17/2010 04:02 PM, Markus Alexander Kuppe wrote:
> Unless I limit the scope of the first searchPathRef to exactly what is
> supposed to be found in A, B is not called.
>
A locator hit is finite unless you specify failOnError='false'.

Regards,
Thomas Hallgren
Re: RMap redirect breaks searchPath overlap [message #515143 is a reply to message #515088] Wed, 17 February 2010 20:52 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 02/17/2010 05:47 PM, Thomas Hallgren wrote:
> On 02/17/2010 04:02 PM, Markus Alexander Kuppe wrote:
>> Unless I limit the scope of the first searchPathRef to exactly what is
>> supposed to be found in A, B is not called.
>>
> A locator hit is finite unless you specify failOnError='false'.

Sorry, what I meant was that I expect Bucky to try the locator in A
first and if it does not produce a match try locator B instead. However
Bucky appears to try A, fails to produce a match an never tries B.

Markus
Re: RMap redirect breaks searchPath overlap [message #515157 is a reply to message #515143] Wed, 17 February 2010 17:12 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 02/17/2010 09:52 PM, Markus Alexander Kuppe wrote:
> On 02/17/2010 05:47 PM, Thomas Hallgren wrote:
>> On 02/17/2010 04:02 PM, Markus Alexander Kuppe wrote:
>>> Unless I limit the scope of the first searchPathRef to exactly what is
>>> supposed to be found in A, B is not called.
>>>
>> A locator hit is finite unless you specify failOnError='false'.
>
> Sorry, what I meant was that I expect Bucky to try the locator in A
> first and if it does not produce a match try locator B instead. However
> Bucky appears to try A, fails to produce a match an never tries B.
>
That's what I meant. Buckminster chooses a SearchPath based on a locator. If that SearchPath fails to produce a match,
the whole resolution fails. That's the intended behavior. You can change this behavior and tell Buckminster to continue
with the next matching locator by setting failOnError="false" on the locator that led to failure.

- thomas
Re: RMap redirect breaks searchPath overlap [message #515243 is a reply to message #515157] Thu, 18 February 2010 09:33 Go to previous message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 02/17/2010 11:08 PM, Thomas Hallgren wrote:
> On 02/17/2010 09:52 PM, Markus Alexander Kuppe wrote:
>> On 02/17/2010 05:47 PM, Thomas Hallgren wrote:
>>> On 02/17/2010 04:02 PM, Markus Alexander Kuppe wrote:
>>>> Unless I limit the scope of the first searchPathRef to exactly what is
>>>> supposed to be found in A, B is not called.
>>>>
>>> A locator hit is finite unless you specify failOnError='false'.
>>
>> Sorry, what I meant was that I expect Bucky to try the locator in A
>> first and if it does not produce a match try locator B instead. However
>> Bucky appears to try A, fails to produce a match an never tries B.
>>
> That's what I meant. Buckminster chooses a SearchPath based on a
> locator. If that SearchPath fails to produce a match, the whole
> resolution fails. That's the intended behavior. You can change this
> behavior and tell Buckminster to continue with the next matching locator
> by setting failOnError="false" on the locator that led to failure.

Thanks, I guess I got lost in translation. :-o

Markus
Previous Topic:generator.lastRevision.format question
Next Topic:Get Maven component from SVN
Goto Forum:
  


Current Time: Fri Apr 26 21:31:22 GMT 2024

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

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

Back to the top