Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Generic Web Connection Query
Generic Web Connection Query [message #34688] Thu, 01 November 2007 08:23 Go to next message
Ali Burak Kulakli is currently offline Ali Burak KulakliFriend
Messages: 116
Registered: July 2009
Senior Member
Hi all,

I have had a generic web connection but I need some extra info now. Here is
a pattern I am looking for

....
<tr>
<td>92</td>

<td class="date">3 days ago</td>


<td>
<a href="patch92">this is the explanation of the patch</a>
</td>

<td>not-applied</td>

<td>BurakKulakli</td>


</tr>
....

I have been using the regex below

<a href\="(patch[0-9]+?)">(.+?)</a>

This gives me "patch92" as ID and "this is the explanation of the patch" as
description which is fine. But now, I want to get "not-applied" as the
status ("not-applied" and "applied" should be considered as complete, others
incomplete) and "BurakKulakli" as the owner. Is this possible?

Cheers,
Burak
Re: Generic Web Connection Query [message #34755 is a reply to message #34688] Thu, 01 November 2007 20:07 Go to previous messageGo to next message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
Ali Burak Kulakli wrote:
> I have had a generic web connection but I need some extra info now. Here is
> a pattern I am looking for
>
> ...
> <tr>
> <td>92</td>
>
> <td class="date">3 days ago</td>
>
>
> <td>
> <a href="patch92">this is the explanation of the patch</a>
> </td>
>
> <td>not-applied</td>
>
> <td>BurakKulakli</td>
>
>
> </tr>
> ...
>
> I have been using the regex below
>
> <a href\="(patch[0-9]+?)">(.+?)</a>
>
> This gives me "patch92" as ID and "this is the explanation of the patch" as
> description which is fine. But now, I want to get "not-applied" as the
> status ("not-applied" and "applied" should be considered as complete, others
> incomplete) and "BurakKulakli" as the owner. Is this possible?
>
Try something like this:

<tr>.+?<td>.+?</td>.+?<td>.+?</td>.+?<td>.+?<a
href\="({Id}patch[0-9]+?)">({Description}.+?)</a>.+?</td ><td>({Status}.+?)</td>.+?<td>({Owner}.+?)</td>.+?</tr >

Currently only the following literals considered for complete
statuses: completed|fixed|resolved|invalid|verified|deleted|closed|don e

Also comment and vote on the following bug (contributions are also
welcomed).

189788: [web connector] Allow more task properties to be set using fixed
mappings
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189788

regards,
Eugene
Re: Generic Web Connection Query [message #35247 is a reply to message #34688] Sat, 03 November 2007 02:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: beatmik.acm.org

Ali: please use the mylyn-integrators list for questions and discussion
on how to build on Mylyn.

http://www.eclipse.org/mylyn/contributors/

Cheers,

Mik

Ali Burak Kulakli wrote:
> Hi all,
>
> I have had a generic web connection but I need some extra info now. Here is
> a pattern I am looking for
>
> ...
> <tr>
> <td>92</td>
>
> <td class="date">3 days ago</td>
>
>
> <td>
> <a href="patch92">this is the explanation of the patch</a>
> </td>
>
> <td>not-applied</td>
>
> <td>BurakKulakli</td>
>
>
> </tr>
> ...
>
> I have been using the regex below
>
> <a href\="(patch[0-9]+?)">(.+?)</a>
>
> This gives me "patch92" as ID and "this is the explanation of the patch" as
> description which is fine. But now, I want to get "not-applied" as the
> status ("not-applied" and "applied" should be considered as complete, others
> incomplete) and "BurakKulakli" as the owner. Is this possible?
>
> Cheers,
> Burak
Re: Generic Web Connection Query [message #35286 is a reply to message #35247] Sat, 03 November 2007 03:12 Go to previous message
Eclipse UserFriend
Originally posted by: beatmik.acm.org

Ali, my apologies, I mis-read your email as an integrator query due to
the repository configuration details, please ignore my reply.

Mik

Mik Kersten wrote:
> Ali: please use the mylyn-integrators list for questions and discussion
> on how to build on Mylyn.
>
> http://www.eclipse.org/mylyn/contributors/
>
> Cheers,
>
> Mik
Re: Generic Web Connection Query [message #584097 is a reply to message #34688] Thu, 01 November 2007 20:07 Go to previous message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
Ali Burak Kulakli wrote:
> I have had a generic web connection but I need some extra info now. Here is
> a pattern I am looking for
>
> ...
> <tr>
> <td>92</td>
>
> <td class="date">3 days ago</td>
>
>
> <td>
> <a href="patch92">this is the explanation of the patch</a>
> </td>
>
> <td>not-applied</td>
>
> <td>BurakKulakli</td>
>
>
> </tr>
> ...
>
> I have been using the regex below
>
> <a href\="(patch[0-9]+?)">(.+?)</a>
>
> This gives me "patch92" as ID and "this is the explanation of the patch" as
> description which is fine. But now, I want to get "not-applied" as the
> status ("not-applied" and "applied" should be considered as complete, others
> incomplete) and "BurakKulakli" as the owner. Is this possible?
>
Try something like this:

<tr>.+?<td>.+?</td>.+?<td>.+?</td>.+?<td>.+?<a
href\="({Id}patch[0-9]+?)">({Description}.+?)</a>.+?</td ><td>({Status}.+?)</td>.+?<td>({Owner}.+?)</td>.+?</tr >

Currently only the following literals considered for complete
statuses: completed|fixed|resolved|invalid|verified|deleted|closed|don e

Also comment and vote on the following bug (contributions are also
welcomed).

189788: [web connector] Allow more task properties to be set using fixed
mappings
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189788

regards,
Eugene
Re: Generic Web Connection Query [message #584311 is a reply to message #34688] Sat, 03 November 2007 02:30 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Ali: please use the mylyn-integrators list for questions and discussion
on how to build on Mylyn.

http://www.eclipse.org/mylyn/contributors/

Cheers,

Mik

Ali Burak Kulakli wrote:
> Hi all,
>
> I have had a generic web connection but I need some extra info now. Here is
> a pattern I am looking for
>
> ...
> <tr>
> <td>92</td>
>
> <td class="date">3 days ago</td>
>
>
> <td>
> <a href="patch92">this is the explanation of the patch</a>
> </td>
>
> <td>not-applied</td>
>
> <td>BurakKulakli</td>
>
>
> </tr>
> ...
>
> I have been using the regex below
>
> <a href\="(patch[0-9]+?)">(.+?)</a>
>
> This gives me "patch92" as ID and "this is the explanation of the patch" as
> description which is fine. But now, I want to get "not-applied" as the
> status ("not-applied" and "applied" should be considered as complete, others
> incomplete) and "BurakKulakli" as the owner. Is this possible?
>
> Cheers,
> Burak
Re: Generic Web Connection Query [message #584341 is a reply to message #35247] Sat, 03 November 2007 03:12 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Ali, my apologies, I mis-read your email as an integrator query due to
the repository configuration details, please ignore my reply.

Mik

Mik Kersten wrote:
> Ali: please use the mylyn-integrators list for questions and discussion
> on how to build on Mylyn.
>
> http://www.eclipse.org/mylyn/contributors/
>
> Cheers,
>
> Mik
Previous Topic:Representation of tasks in trac connector
Next Topic:Task Editor
Goto Forum:
  


Current Time: Tue Apr 16 19:04:06 GMT 2024

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

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

Back to the top