Generic Web named expressions ({Id}.+?) - are these supported? [message #55555] |
Thu, 07 August 2008 14:05  |
Eclipse User |
|
|
|
Documentation for Generic Connector at
http://wiki.eclipse.org/index.php/Mylyn_User_Guide#Generic_W eb_Repository_Connector
indicates that I can define expressions like this:
Note: Query Pattern field should be a regexp with 1st matching group on
Issue ID and 2nd on Issue Description. Alternatively, you could use named
matching groups: ({Id}.+?), ({Description}.+?), ({Status}.+?), ({Owner}.+?)
and ({Type}.+?), then they can appear in query regexp in an arbitrary order.
The second option requires build 2.0.0v20070717 or later.
I tried to build pattern using the alternat form ... ({Id}.+?) ... but I get
expression errors.
I'm using Ganymede, and all mylyn related plugin jars have version numbers
of 3. something with build dates 2008...
The generic web plugin is
org.eclipse.mylyn.web.tasks_3.0.1.v20080721-2100-e3x.jar.
Question: Is this feature for naming the patterns supported, or possibly the
documentation is wrong?
Michael
|
|
|
|
Re: Generic Web named expressions ({Id}.+?) - are these supported? [message #55611 is a reply to message #55584] |
Thu, 07 August 2008 16:26   |
Eclipse User |
|
|
|
I have added a comment to the bug.
What I find is that {Id} causes the parsing error: null pointer. Any of the
other keywords cause a message that taskId and summary must be specified
(see bug for exact message).
Also, I believe that if using named matching groups that it is necessary for
all matching groups to be named. If this is a rule, the NOTE regarding the
alternate form using named matching groups should be updated.
Michael
"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:g7fj4g$3r9$1@build.eclipse.org...
> The error you are seeing may be caused by a regression in Mylyn 3.0 that
> has
> been reported here:
>
> 243131: [web connector] named regex groups don't work with 3.4
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=243131
>
> Please comment on the bug report with the expression that is failing for
> you.
>
> Thanks.
> Steffen
>
>
> Michael Giroux wrote:
>
>> Documentation for Generic Connector at
>>
> http://wiki.eclipse.org/index.php/Mylyn_User_Guide#Generic_W eb_Repository_Connector
>> indicates that I can define expressions like this:
>>
>> Note: Query Pattern field should be a regexp with 1st matching group on
>> Issue ID and 2nd on Issue Description. Alternatively, you could use named
>> matching groups: ({Id}.+?), ({Description}.+?), ({Status}.+?),
>> ({Owner}.+?) and ({Type}.+?), then they can appear in query regexp in an
>> arbitrary order. The second option requires build 2.0.0v20070717 or
>> later.
>>
>> I tried to build pattern using the alternat form ... ({Id}.+?) ... but I
>> get expression errors.
>>
>> I'm using Ganymede, and all mylyn related plugin jars have version
>> numbers
>> of 3. something with build dates 2008...
>>
>> The generic web plugin is
>> org.eclipse.mylyn.web.tasks_3.0.1.v20080721-2100-e3x.jar.
>>
>> Question: Is this feature for naming the patterns supported, or possibly
>> the documentation is wrong?
>>
>> Michael
>
|
|
|
|
Re: Generic Web named expressions ({Id}.+?) - are these supported? [message #592295 is a reply to message #55555] |
Thu, 07 August 2008 15:41  |
Eclipse User |
|
|
|
The error you are seeing may be caused by a regression in Mylyn 3.0 that has
been reported here:
243131: [web connector] named regex groups don't work with 3.4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243131
Please comment on the bug report with the expression that is failing for
you.
Thanks.
Steffen
Michael Giroux wrote:
> Documentation for Generic Connector at
>
http://wiki.eclipse.org/index.php/Mylyn_User_Guide#Generic_W eb_Repository_Connector
> indicates that I can define expressions like this:
>
> Note: Query Pattern field should be a regexp with 1st matching group on
> Issue ID and 2nd on Issue Description. Alternatively, you could use named
> matching groups: ({Id}.+?), ({Description}.+?), ({Status}.+?),
> ({Owner}.+?) and ({Type}.+?), then they can appear in query regexp in an
> arbitrary order. The second option requires build 2.0.0v20070717 or later.
>
> I tried to build pattern using the alternat form ... ({Id}.+?) ... but I
> get expression errors.
>
> I'm using Ganymede, and all mylyn related plugin jars have version numbers
> of 3. something with build dates 2008...
>
> The generic web plugin is
> org.eclipse.mylyn.web.tasks_3.0.1.v20080721-2100-e3x.jar.
>
> Question: Is this feature for naming the patterns supported, or possibly
> the documentation is wrong?
>
> Michael
|
|
|
Re: Generic Web named expressions ({Id}.+?) - are these supported? [message #592303 is a reply to message #55584] |
Thu, 07 August 2008 16:26  |
Eclipse User |
|
|
|
I have added a comment to the bug.
What I find is that {Id} causes the parsing error: null pointer. Any of the
other keywords cause a message that taskId and summary must be specified
(see bug for exact message).
Also, I believe that if using named matching groups that it is necessary for
all matching groups to be named. If this is a rule, the NOTE regarding the
alternate form using named matching groups should be updated.
Michael
"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:g7fj4g$3r9$1@build.eclipse.org...
> The error you are seeing may be caused by a regression in Mylyn 3.0 that
> has
> been reported here:
>
> 243131: [web connector] named regex groups don't work with 3.4
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=243131
>
> Please comment on the bug report with the expression that is failing for
> you.
>
> Thanks.
> Steffen
>
>
> Michael Giroux wrote:
>
>> Documentation for Generic Connector at
>>
> http://wiki.eclipse.org/index.php/Mylyn_User_Guide#Generic_W eb_Repository_Connector
>> indicates that I can define expressions like this:
>>
>> Note: Query Pattern field should be a regexp with 1st matching group on
>> Issue ID and 2nd on Issue Description. Alternatively, you could use named
>> matching groups: ({Id}.+?), ({Description}.+?), ({Status}.+?),
>> ({Owner}.+?) and ({Type}.+?), then they can appear in query regexp in an
>> arbitrary order. The second option requires build 2.0.0v20070717 or
>> later.
>>
>> I tried to build pattern using the alternat form ... ({Id}.+?) ... but I
>> get expression errors.
>>
>> I'm using Ganymede, and all mylyn related plugin jars have version
>> numbers
>> of 3. something with build dates 2008...
>>
>> The generic web plugin is
>> org.eclipse.mylyn.web.tasks_3.0.1.v20080721-2100-e3x.jar.
>>
>> Question: Is this feature for naming the patterns supported, or possibly
>> the documentation is wrong?
>>
>> Michael
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.07780 seconds