Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-builds-dev] Question about refreshing plans upon new server creation

Mr. Pingel:

Thank you very much for your answer, I haven't been able to fully understand the refreshConfiguration() method as I
am not quite sure about the behaviour of the match() method in HudsonUrl if the list is null.

So I guess when it comes to the toURL(), it will simply skip the id list and query everything out of hudson?

Ken Leung

----- Original Message -----
From: "Steffen Pingel" <steffen.pingel@xxxxxxxxxxx>
To: mylyn-builds-dev@xxxxxxxxxxx
Sent: Thursday, August 25, 2011 1:57:47 AM
Subject: Re: [mylyn-builds-dev] Question about refreshing plans upon new server creation


RefreshSession.refreshPlans() populates the list of plans based on the subscription in the builds model. The subscription is managed in the properties page of the build server. The list of plans presented in the page page is obtained by invokeing BuildServerBehavior.refreshConfiguration() which should return an object with the list of available plans. 


I hope that helps. 


Steffen 



On Wed, Aug 24, 2011 at 7:31 PM, Kiu Leung < kleung@xxxxxxxxxx > wrote: 


Hi all, 

I am now implementing the getPlans() method of the ServerBehavior class for the koji connector. 
At a first glance, I noticed that the method takes a list of plan IDs. This raises the question 
about, when a new server is created and the refresh button is clicked, what is being sent to the 
getPlans() to query all the available build plans of the server? 

(I did a bit of tracing and it brought me to a RefreshSession class' refreshPlans() method, but tracing 
that method leads to a conclusion of an empty list is passed to the getPlans().) 

I should be grateful for your kind advice and thank you very much! 

Best wishes, 

Ken Leung 
_______________________________________________ 
mylyn-builds-dev mailing list 
mylyn-builds-dev@xxxxxxxxxxx 
http://dev.eclipse.org/mailman/listinfo/mylyn-builds-dev 




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

_______________________________________________
mylyn-builds-dev mailing list
mylyn-builds-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/mylyn-builds-dev


Back to the top