Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Example code for Headless Bugzilla use
Example code for Headless Bugzilla use [message #49931] Wed, 11 June 2008 21:29 Go to next message
David Marple is currently offline David MarpleFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,


The Example code for Headless use of the Bugzilla
API( http://wiki.eclipse.org/Mylyn/Integrator_Reference#Quick_Exa mple)
doesn't seem work for me; there is no class AbstractRepositoryTask that I
can locate. The following code seems to work, but only for a few bugzilla
(eclipse works, redhat doesn't) repositories; the rest end with a core
exception thrown when it parses the HTML:

BugzillaRepositoryConnector connector = new
BugzillaRepositoryConnector();

connector.init(new TaskList());
TaskRepository repository = new
TaskRepository(BugzillaCorePlugin.REPOSITORY_KIND,
"https://bugzilla.redhat.com/");

AbstractTaskDataHandler handler = connector.getTaskDataHandler();
RepositoryTaskData taskdata = null;

try{

taskdata = handler.getTaskData(repository, "123", new
NullProgressMonitor());

}catch(CoreException e){
System.out.println("Couldn't get task data for bug
123"+((RepositoryStatus)e.getStatus()).getHtmlMessage());

e.printStackTrace();

}

I'm not quite sure where to go from here

Thanks,
David Marple
Re: Example code for Headless Bugzilla use [message #49960 is a reply to message #49931] Fri, 13 June 2008 18:51 Go to previous message
David Marple is currently offline David MarpleFriend
Messages: 4
Registered: July 2009
Junior Member
Well I've gotten it working for at least one more. The Mozilla repository
you must remove the trailing slash from the URL, ie put
"https://bugzilla.mozilla.org", but there are still many others that don't
work.
Re: Example code for Headless Bugzilla use [message #590045 is a reply to message #49931] Fri, 13 June 2008 18:51 Go to previous message
David Marple is currently offline David MarpleFriend
Messages: 4
Registered: July 2009
Junior Member
Well I've gotten it working for at least one more. The Mozilla repository
you must remove the trailing slash from the URL, ie put
"https://bugzilla.mozilla.org", but there are still many others that don't
work.
Previous Topic:Mylyn monitor doesn't capture selection and edit event?
Next Topic:Information to write a Mylyn bridge.
Goto Forum:
  


Current Time: Fri Jan 03 08:47:54 GMT 2025

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

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

Back to the top