How to contribute new Generic Web templates [message #56855] |
Wed, 27 August 2008 13:15  |
Eclipse User |
|
|
|
The generic web connector provides templates for a few types of
repositories. After spending a few days refining the urls and query
patterns for my repository, I would like to share this with the rest of the
team with something more convenient that copy/paste.
How can I add a new repository template to the generic web connector?
I've been looking for an extension point that I could contribute to, but no
luck.
I've searched the jars looking for an xml config or something, but again no
luck.
I don'm mind writing a plug-in if I have to, but cannot find the extension
point I need to use.
Thanks
Michael
|
|
|
|
|
|
|
Re: How to contribute new Generic Web templates [message #57601 is a reply to message #57577] |
Tue, 09 September 2008 18:51   |
Eclipse User |
|
|
|
BTW, if you only need to share your settings, you can simply export
task query. It is exported together with the task repository
configuration. So, other users can import it and edit settings if necessary.
regards,
Eugene
Michael Giroux wrote:
> Building the plugin was quite simple. Thanks.
>
>
> Michael
>
> "Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
> news:ga6bn0$2gp$5@build.eclipse.org...
>
>> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>>
>> <extension
>> point="org.eclipse.mylyn.tasks.core.templates">
>> <repository
>> repositoryKind="web"
>> label="Subclipse (IssueZilla)"
>> urlRepository="http://subclipse.tigris.org/issues"
>> urlTask="${serverUrl}/show_bug.cgi?id="
>> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>>
>> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&issue_stat us=STARTED&issue_status=REOPENED&order=Issue +Number ">
>> <attribute name="queryPattern"
>> value="<a href="show_bug.cgi\?id\=(
>> +?)">.+?<span
>> class="summary">(.+?)</span& amp;gt; "/>
>> </repository>
>> ...
>> </extension>
>>
>> If your plug-in specifies a template that has the repositoryKind set
>> to "web" it should show up in the repository properties dialog.
>>
>> Steffen
>>
>>
>> Michael Giroux wrote:
>>
>>
>>> I'll be happy to read the manual, but could not find anything related. I
>>> may have overlooked something. Could someone point me to appropriate
>>> docs?
>>>
>>> Michael
>>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>>> news:g9422v$9t5$1@build.eclipse.org...
>>>
>>>> The generic web connector provides templates for a few types of
>>>> repositories. After spending a few days refining the urls and query
>>>> patterns for my repository, I would like to share this with the rest of
>>>> the team with something more convenient that copy/paste.
>>>>
>>>> How can I add a new repository template to the generic web connector?
>>>>
>>>> I've been looking for an extension point that I could contribute to, but
>>>> no luck.
>>>>
>>>> I've searched the jars looking for an xml config or something, but again
>>>> no luck.
>>>>
>>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>>> extension point I need to use.
>>>>
>>>> Thanks
>>>> Michael
>>>>
>>>>
>
>
>
|
|
|
|
|
|
|
|
|
Re: How to contribute new Generic Web templates [message #593051 is a reply to message #56855] |
Mon, 08 September 2008 11:40  |
Eclipse User |
|
|
|
I'll be happy to read the manual, but could not find anything related. I
may have overlooked something. Could someone point me to appropriate docs?
Michael
"Michael Giroux" <michael.giroux@bull.com> wrote in message
news:g9422v$9t5$1@build.eclipse.org...
> The generic web connector provides templates for a few types of
> repositories. After spending a few days refining the urls and query
> patterns for my repository, I would like to share this with the rest of
> the team with something more convenient that copy/paste.
>
> How can I add a new repository template to the generic web connector?
>
> I've been looking for an extension point that I could contribute to, but
> no luck.
>
> I've searched the jars looking for an xml config or something, but again
> no luck.
>
> I don'm mind writing a plug-in if I have to, but cannot find the extension
> point I need to use.
>
> Thanks
> Michael
>
|
|
|
Re: How to contribute new Generic Web templates [message #593100 is a reply to message #57300] |
Tue, 09 September 2008 13:28  |
Eclipse User |
|
|
|
Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
<extension
point="org.eclipse.mylyn.tasks.core.templates">
<repository
repositoryKind="web"
label="Subclipse (IssueZilla)"
urlRepository="http://subclipse.tigris.org/issues"
urlTask="${serverUrl}/show_bug.cgi?id="
urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&issue_stat us=STARTED&issue_status=REOPENED&order=Issue +Number ">
<attribute name="queryPattern"
value="<a href="show_bug.cgi\?id\=(
+?)">.+?<span class="summary">(.+?)</span& amp;gt; "/>
</repository>
...
</extension>
If your plug-in specifies a template that has the repositoryKind set
to "web" it should show up in the repository properties dialog.
Steffen
Michael Giroux wrote:
> I'll be happy to read the manual, but could not find anything related. I
> may have overlooked something. Could someone point me to appropriate
> docs?
>
> Michael
> "Michael Giroux" <michael.giroux@bull.com> wrote in message
> news:g9422v$9t5$1@build.eclipse.org...
>> The generic web connector provides templates for a few types of
>> repositories. After spending a few days refining the urls and query
>> patterns for my repository, I would like to share this with the rest of
>> the team with something more convenient that copy/paste.
>>
>> How can I add a new repository template to the generic web connector?
>>
>> I've been looking for an extension point that I could contribute to, but
>> no luck.
>>
>> I've searched the jars looking for an xml config or something, but again
>> no luck.
>>
>> I don'm mind writing a plug-in if I have to, but cannot find the
>> extension point I need to use.
>>
>> Thanks
>> Michael
>>
|
|
|
Re: How to contribute new Generic Web templates [message #593141 is a reply to message #57426] |
Tue, 09 September 2008 17:14  |
Eclipse User |
|
|
|
Exactly what I needed. I'll dig in.
Michael
"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:ga6bn0$2gp$5@build.eclipse.org...
> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>
> <extension
> point="org.eclipse.mylyn.tasks.core.templates">
> <repository
> repositoryKind="web"
> label="Subclipse (IssueZilla)"
> urlRepository="http://subclipse.tigris.org/issues"
> urlTask="${serverUrl}/show_bug.cgi?id="
> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>
> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&issue_stat us=STARTED&issue_status=REOPENED&order=Issue +Number ">
> <attribute name="queryPattern"
> value="<a href="show_bug.cgi\?id\=(
> +?)">.+?<span
> class="summary">(.+?)</span& amp;gt; "/>
> </repository>
> ...
> </extension>
>
> If your plug-in specifies a template that has the repositoryKind set
> to "web" it should show up in the repository properties dialog.
>
> Steffen
>
>
> Michael Giroux wrote:
>
>> I'll be happy to read the manual, but could not find anything related. I
>> may have overlooked something. Could someone point me to appropriate
>> docs?
>>
>> Michael
>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>> news:g9422v$9t5$1@build.eclipse.org...
>>> The generic web connector provides templates for a few types of
>>> repositories. After spending a few days refining the urls and query
>>> patterns for my repository, I would like to share this with the rest of
>>> the team with something more convenient that copy/paste.
>>>
>>> How can I add a new repository template to the generic web connector?
>>>
>>> I've been looking for an extension point that I could contribute to, but
>>> no luck.
>>>
>>> I've searched the jars looking for an xml config or something, but again
>>> no luck.
>>>
>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>> extension point I need to use.
>>>
>>> Thanks
>>> Michael
>>>
>
|
|
|
Re: How to contribute new Generic Web templates [message #593152 is a reply to message #57426] |
Tue, 09 September 2008 17:47  |
Eclipse User |
|
|
|
Building the plugin was quite simple. Thanks.
Michael
"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:ga6bn0$2gp$5@build.eclipse.org...
> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>
> <extension
> point="org.eclipse.mylyn.tasks.core.templates">
> <repository
> repositoryKind="web"
> label="Subclipse (IssueZilla)"
> urlRepository="http://subclipse.tigris.org/issues"
> urlTask="${serverUrl}/show_bug.cgi?id="
> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>
> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&issue_stat us=STARTED&issue_status=REOPENED&order=Issue +Number ">
> <attribute name="queryPattern"
> value="<a href="show_bug.cgi\?id\=(
> +?)">.+?<span
> class="summary">(.+?)</span& amp;gt; "/>
> </repository>
> ...
> </extension>
>
> If your plug-in specifies a template that has the repositoryKind set
> to "web" it should show up in the repository properties dialog.
>
> Steffen
>
>
> Michael Giroux wrote:
>
>> I'll be happy to read the manual, but could not find anything related. I
>> may have overlooked something. Could someone point me to appropriate
>> docs?
>>
>> Michael
>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>> news:g9422v$9t5$1@build.eclipse.org...
>>> The generic web connector provides templates for a few types of
>>> repositories. After spending a few days refining the urls and query
>>> patterns for my repository, I would like to share this with the rest of
>>> the team with something more convenient that copy/paste.
>>>
>>> How can I add a new repository template to the generic web connector?
>>>
>>> I've been looking for an extension point that I could contribute to, but
>>> no luck.
>>>
>>> I've searched the jars looking for an xml config or something, but again
>>> no luck.
>>>
>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>> extension point I need to use.
>>>
>>> Thanks
>>> Michael
>>>
>
|
|
|
Re: How to contribute new Generic Web templates [message #593165 is a reply to message #57577] |
Tue, 09 September 2008 18:51  |
Eclipse User |
|
|
|
BTW, if you only need to share your settings, you can simply export
task query. It is exported together with the task repository
configuration. So, other users can import it and edit settings if necessary.
regards,
Eugene
Michael Giroux wrote:
> Building the plugin was quite simple. Thanks.
>
>
> Michael
>
> "Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
> news:ga6bn0$2gp$5@build.eclipse.org...
>
>> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>>
>> <extension
>> point="org.eclipse.mylyn.tasks.core.templates">
>> <repository
>> repositoryKind="web"
>> label="Subclipse (IssueZilla)"
>> urlRepository="http://subclipse.tigris.org/issues"
>> urlTask="${serverUrl}/show_bug.cgi?id="
>> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>>
>> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&issue_stat us=STARTED&issue_status=REOPENED&order=Issue +Number ">
>> <attribute name="queryPattern"
>> value="<a href="show_bug.cgi\?id\=(
>> +?)">.+?<span
>> class="summary">(.+?)</span& amp;gt; "/>
>> </repository>
>> ...
>> </extension>
>>
>> If your plug-in specifies a template that has the repositoryKind set
>> to "web" it should show up in the repository properties dialog.
>>
>> Steffen
>>
>>
>> Michael Giroux wrote:
>>
>>
>>> I'll be happy to read the manual, but could not find anything related. I
>>> may have overlooked something. Could someone point me to appropriate
>>> docs?
>>>
>>> Michael
>>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>>> news:g9422v$9t5$1@build.eclipse.org...
>>>
>>>> The generic web connector provides templates for a few types of
>>>> repositories. After spending a few days refining the urls and query
>>>> patterns for my repository, I would like to share this with the rest of
>>>> the team with something more convenient that copy/paste.
>>>>
>>>> How can I add a new repository template to the generic web connector?
>>>>
>>>> I've been looking for an extension point that I could contribute to, but
>>>> no luck.
>>>>
>>>> I've searched the jars looking for an xml config or something, but again
>>>> no luck.
>>>>
>>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>>> extension point I need to use.
>>>>
>>>> Thanks
>>>> Michael
>>>>
>>>>
>
>
>
|
|
|
Re: How to contribute new Generic Web templates [message #593188 is a reply to message #57601] |
Wed, 10 September 2008 12:24  |
Eclipse User |
|
|
|
Thanks Eugene. I noticed the export feature after posting the original
question.
Michael
"Eugene Kuleshov" <eu@md.pp.ru> wrote in message
news:ga6ukn$o07$1@build.eclipse.org...
>
> BTW, if you only need to share your settings, you can simply export task
> query. It is exported together with the task repository configuration. So,
> other users can import it and edit settings if necessary.
>
> regards,
> Eugene
|
|
|
|
Re: How to contribute new Generic Web templates [message #593506 is a reply to message #58392] |
Fri, 26 September 2008 01:35  |
Eclipse User |
|
|
|
On 09/26/08 00:42, Menon wrote:
> Hi Will you be able to help me out connecting to my repository thru the
> generic web connector?
> My web server use windows authentication. I used
> "http://.....com/project/bug" in the "Server"; This is our internal server.
> User id, password - I gave my windows userid/password
> In the advanced configuration: Query Url: I used
> "http://.../project/bug/default.aspx?bug_id=2001"
>
> But when I query, I get the follwoing error:
> Failed to parse RSS feed: "Invalid XML: Error on line 7: The element
> type "BR" must be terminated by the matching end-tag "</BR>"."
Hi Sunanda,
please check whether the query pattern is empty. In that special case, the result returned from the
web server is tried to be parsed as RSS which fails in your case.
Please check the docs in the wiki how to setup the query pattern. It is used to extract the bug ids
from the web page.
Cheers, Jörg
|
|
|
Re: How to contribute new Generic Web templates [message #593526 is a reply to message #58412] |
Fri, 26 September 2008 15:54  |
Eclipse User |
|
|
|
Thanks Jorg for your advice. I used the URL below to seach all my bugs
from the browser and it works.BUt when I use the same URL in the "Query
URL" and try to ope, I get a "Network Error (tcp_error) " . When do
synchronize, I do not get any error, but it does not show any records. I
have "Integrated windows authentication" for this, so I provided my
domain\username and password instead of anonymous access. The web server
is in the intranet.
Query URL:
http://.../search/result.aspx?reloadf=2&focus=bug&us r_query_id=224&global_list=&userid_list=srmenon1& ;crofoc=&pgf=&mydiv1tb=&mydiv2tb=1
( I looked at the "view Source" in the browser of the results page- it
shows <a href="/..../default.aspx?bug_id=3772">3772</a> )
So the query pattern I usedis
<a href="/..../bug/default.aspx?bug_id=(.+?)</a>
When I do a "preview" using the above, then it says No matching results
found. Check Query regex
I tried to do "Open" with Query Url in teh advanced configurartion, I get
a "Network Error (tcp_error) "
Thanks
Sunanda
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04306 seconds