continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r580890 - in /maven/continuum/trunk/continuum-xmlrpc: continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ continuum-xmlrpc-server/src/main/jav...
Date Mon, 01 Oct 2007 08:29:30 GMT
Author: evenisse
Date: Mon Oct  1 01:29:29 2007
New Revision: 580890

URL: http://svn.apache.org/viewvc?rev=580890&view=rev
Log:
Add build group methods

Modified:
    maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
    maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
    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-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java?rev=580890&r1=580889&r2=580890&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
Mon Oct  1 01:29:29 2007
@@ -282,6 +282,26 @@
     int buildProject( int projectId, int buildDefinitionId )
         throws ContinuumException, XmlRpcException;
 
+    /**
+     * Build the project group with the default build definition.
+     *
+     * @param projectGroupId The project group id
+     * @throws ContinuumException
+     * @throws XmlRpcException
+     */
+    int buildGroup( int projectGroupId )
+        throws ContinuumException, XmlRpcException;
+
+    /**
+     * Build the project group with the specified build definition.
+     *
+     * @param projectGroupId    The project group id
+     * @param buildDefinitionId The build definition id
+     * @throws ContinuumException
+     * @throws XmlRpcException
+     */
+    int buildGroup( int projectGroupId, int buildDefinitionId )
+        throws ContinuumException, XmlRpcException;
     // ----------------------------------------------------------------------
     // Build Results
     // ----------------------------------------------------------------------

Modified: maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java?rev=580890&r1=580889&r2=580890&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
Mon Oct  1 01:29:29 2007
@@ -435,6 +435,32 @@
         }
     }
 
+    public int buildGroup( int projectGroupId )
+        throws ContinuumException, XmlRpcException
+    {
+        try
+        {
+            return continuum.buildGroup( projectGroupId );
+        }
+        catch ( Exception e )
+        {
+            throw new ContinuumException( "The remote method failed.", e );
+        }
+    }
+
+    public int buildGroup( int projectGroupId, int buildDefinitionId )
+        throws ContinuumException, XmlRpcException
+    {
+        try
+        {
+            return continuum.buildGroup( projectGroupId, buildDefinitionId );
+        }
+        catch ( Exception e )
+        {
+            throw new ContinuumException( "The remote method failed.", e );
+        }
+    }
+
     // ----------------------------------------------------------------------
     // Build Results
     // ----------------------------------------------------------------------

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?rev=580890&r1=580889&r2=580890&view=diff
==============================================================================
--- 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 Oct  1 01:29:29 2007
@@ -437,6 +437,28 @@
         return 0;
     }
 
+    public int buildGroup( int projectGroupId )
+        throws ContinuumException
+    {
+        ProjectGroupSummary pg = getProjectGroupSummary( projectGroupId );
+        checkBuildProjectInGroupAuthorization( pg.getName() );
+
+        continuum.buildProjectGroup( projectGroupId );
+
+        return 0;
+    }
+
+    public int buildGroup( int projectGroupId, int buildDefintionId )
+        throws ContinuumException
+    {
+        ProjectGroupSummary pg = getProjectGroupSummary( projectGroupId );
+        checkBuildProjectInGroupAuthorization( pg.getName() );
+
+        continuum.buildProjectGroupWithBuildDefinition( projectGroupId, buildDefintionId
);
+
+        return 0;
+    }
+
     // ----------------------------------------------------------------------
     // Build Results
     // ----------------------------------------------------------------------



Mime
View raw message