Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-builds-dev] Question about Repository Location

Hi Ken,

the approach that you suggested sounds good.

On Mon, Aug 22, 2011 at 10:22 PM, Kiu Leung <kleung@xxxxxxxxxx> wrote:
[..]  I know that the instance of the BuildServer can be
obtained by calling BuildUI.createServer(connector kind), but can I simply fill the server
url into the properties of the RepositoryLocation and set the server as the buildplan's server?

Yes, you should be able to construct new servers objects based on a location and add them to the builds model. You might want to take a look at the Hudson auto discovery implementation in HudsonDiscovery and calls to BuildsUi.createServer() for examples how to lookup existing servers or add new servers.

The implementation in BuildHistoryPage should give you and idea how to create an operation to obtain an IBuild and open it in the editor.

Steffen

--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com

Back to the top