continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1000311 - /continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Date Thu, 23 Sep 2010 04:53:24 GMT
Author: ctan
Date: Thu Sep 23 04:53:23 2010
New Revision: 1000311

URL: http://svn.apache.org/viewvc?rev=1000311&view=rev
Log:
return continuumreleaseresult id after releasecleanup

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

Modified: continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java?rev=1000311&r1=1000310&r2=1000311&view=diff
==============================================================================
--- continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
(original)
+++ continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Thu Sep 23 04:53:23 2010
@@ -38,7 +38,6 @@ import org.apache.continuum.buildmanager
 import org.apache.continuum.dao.SystemConfigurationDao;
 import org.apache.continuum.purge.ContinuumPurgeManagerException;
 import org.apache.continuum.purge.PurgeConfigurationServiceException;
-import org.apache.continuum.release.config.ContinuumReleaseDescriptor;
 import org.apache.continuum.repository.RepositoryServiceException;
 import org.apache.continuum.xmlrpc.release.ContinuumReleaseResult;
 import org.apache.continuum.xmlrpc.repository.DirectoryPurgeConfiguration;
@@ -2879,7 +2878,7 @@ public class ContinuumServiceImpl
         if ( project != null )
         {
             checkBuildProjectInGroupAuthorization( project.getProjectGroup().getName() );
-            continuum.addContinuumReleaseResult( projectId, releaseId, releaseType );
+            org.apache.continuum.model.release.ContinuumReleaseResult result = continuum.addContinuumReleaseResult(
projectId, releaseId, releaseType );
 
             if ( continuum.getConfiguration().isDistributedBuildEnabled() )
             {
@@ -2891,7 +2890,7 @@ public class ContinuumServiceImpl
                 continuum.getReleaseManager().getListeners().remove( releaseId );
             }
     
-            return 0;
+            return result != null ? result.getId() : 0;
         }
         else
         {



Mime
View raw message