Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

Java, the OLPC, and community responsibility

The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!
Replies: 4 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

Generic Web named expressions ({Id}.+?) - are these supported?

At 2:05 PM on Aug 7, 2008, Michael Giroux wrote:

Documentation for Generic Connector at
http://wiki.eclipse.org/index.php/Mylyn_User_Guide#Generic_Web_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


  Click to reply to this thread Reply
1. At 3:41 PM on Aug 7, 2008, Steffen Pingel wrote:

Re: Generic Web named expressions ({Id}.+?) - are these supported?

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_Web_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

  Click to reply to this thread Reply
2. At 4:26 PM on Aug 7, 2008, Michael Giroux wrote:

Re: Generic Web named expressions ({Id}.+?) - are these supported?

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" wrote in message
news:g7fj4g$3r9$1 at build dot eclipse dot 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_Web_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
>


  Click to reply to this thread Reply
3. At 1:43 PM on Aug 27, 2008, Michael Giroux wrote:

Re: Generic Web named expressions ({Id}.+?) - are these supported?

Steffen,
Have installed the weekly build and the named expressions are working just
fine.

Thanks
Michael


  Click to reply to this thread Reply
3. At 1:43 PM on Aug 27, 2008, Michael Giroux wrote:

Re: Generic Web named expressions ({Id}.+?) - are these supported?

Steffen,
Have installed the weekly build and the named expressions are working just
fine.

Thanks
Michael



thread.rss_message