continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r554700 - /maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Date Mon, 09 Jul 2007 16:45:28 GMT
Author: evenisse
Date: Mon Jul  9 09:45:20 2007
New Revision: 554700

URL: http://svn.apache.org/viewvc?view=rev&rev=554700
Log:
Fix JPOX error in updateProject method

Modified:
    maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java

Modified: maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java?view=diff&rev=554700&r1=554699&r2=554700
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Mon Jul  9 09:45:20 2007
@@ -134,7 +134,18 @@
 
         checkRemoveProjectFromGroupAuthorization( ps.getProjectGroup().getName() );
 
-        continuum.updateProject( populateProject( project ) );
+        org.apache.maven.continuum.model.project.Project p = continuum.getProject( project.getId()
);
+
+        p.setName( project.getName() );
+        p.setVersion( project.getVersion() );
+        p.setScmUrl( p.getScmUrl() );
+        p.setScmUseCache( project.isScmUseCache() );
+        p.setScmUsername( project.getScmUsername() );
+        p.setScmPassword( project.getScmPassword() );
+        p.setScmTag( p.getScmTag() );
+
+        continuum.updateProject( p );
+
         return getProjectSummary( project.getId() );
     }
 



Mime
View raw message