continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Banck, Arent-Jan" <ajba...@informatica.com>
Subject RE: Add / remove ProjectNotifiers using XML-RPC in Continuum 1.0.3
Date Tue, 23 Oct 2007 12:41:37 GMT
 Notifiers are indeed missing in ProjectReader. After adding the code I found that calling
continuum.getProjects does not set the developers and notifiers. When calling continuum.getProject
for an individual project, these are set as expected. Looks like this is a bug in getProjects.

Stepping through ProjectReader I found it is very buggy. For example all boolean fields are
populated with Boolean.getBoolean(system property lookup method) instead of Boolean.valueOf,
causing all booleans to be set as false.

Considering this, would it be wise to get into this/patch for 1.0.x, or see it as a dead-end
for 1.0.x and wait/go for 1.1?

Thanks,
Arent-Jan


-----Original Message-----
From: Emmanuel Venisse [mailto:emmanuel@venisse.net] 
Sent: Tuesday, October 23, 2007 1:17 PM
To: continuum-users@maven.apache.org
Subject: Re: Add / remove ProjectNotifiers using XML-RPC in Continuum 1.0.3

I don't think it's possible. Some features was missing in 1.0.3.
You can checkout the code of 1.0.3 and create a patch.

Emmanuel

Banck, Arent-Jan a écrit :
> Hi,
> I am trying to use the XML-RPC API to manage the notifiers for a 
> project, but am unsuccessful doing so.
> When adding notifiers in the web-ui, and iterating over the 
> projects/notifiers, list of notifiers length is always zero.
> I am using SampleClient.java as basis, code snippet:
>             projects = pr.readProjects();
>             for ( int i = 0; i < projects.length; i++ )
>             {
>                 System.out.println( projects[i] + " - Name=" +
> projects[i].getName() );
> 
>                 List notifiers = projects[i].getNotifiers();           
>                 System.out.println(notifiers.size()); // Always zero
> 
> When trying to add a notifier by creating a new one and adding it by:
>     projects[i].addNotifier(newNotifier);
> the notifier doesn't seem to get added.
>  
> Am I missing something here, what to do to get this working?
>  
> Thanks,
>  
> Arent-Jan
> 


Mime
View raw message