continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r593105 - in /maven/continuum/trunk/continuum-xmlrpc: continuum-xmlrpc-api/ continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ continuum-xmlr...
Date Thu, 08 Nov 2007 09:55:11 GMT
Author: evenisse
Date: Thu Nov  8 01:55:09 2007
New Revision: 593105

URL: http://svn.apache.org/viewvc?rev=593105&view=rev
Log:
Remove dependency to continuum-api in xmlrpc api

Modified:
    maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/pom.xml
    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/pom.xml

Modified: maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/pom.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/pom.xml?rev=593105&r1=593104&r2=593105&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/pom.xml (original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/pom.xml Thu Nov  8 01:55:09
2007
@@ -29,10 +29,6 @@
 
   <dependencies>
     <dependency>
-      <groupId>org.apache.maven.continuum</groupId>
-      <artifactId>continuum-api</artifactId>
-    </dependency>
-    <dependency>
       <groupId>org.apache.xmlrpc</groupId>
       <artifactId>xmlrpc-common</artifactId>
       <version>3.0</version>

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=593105&r1=593104&r2=593105&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
Thu Nov  8 01:55:09 2007
@@ -19,7 +19,6 @@
  * under the License.
  */
 
-import org.apache.maven.continuum.ContinuumException;
 import org.apache.maven.continuum.xmlrpc.project.AddingResult;
 import org.apache.maven.continuum.xmlrpc.project.BuildDefinition;
 import org.apache.maven.continuum.xmlrpc.project.BuildResult;
@@ -51,53 +50,49 @@
      *
      * @param projectGroupId The project group Id
      * @return List of {@link ProjectSummary}
-     * @throws ContinuumException
+     * @throws Exception
      * @throws XmlRpcException
      */
     List<ProjectSummary> getProjects( int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Get a project.
      *
      * @param projectId the project id
      * @return The project summary
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectSummary getProjectSummary( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Get a project with all details.
      *
      * @param projectId The project id
      * @return The project
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     Project getProjectWithAllDetails( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Remove a project.
      *
      * @param projectId The project id
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int removeProject( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Update a project. Useful to change the scm parameters.
      *
      * @param project The project to update
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectSummary updateProject( ProjectSummary project )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Projects Groups
@@ -107,74 +102,67 @@
      * Get all project groups.
      *
      * @return All project groups
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<ProjectGroupSummary> getAllProjectGroups()
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Get all project groups with all details (project summaries, notifiers, build definitions).
      *
      * @return All project groups
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<ProjectGroup> getAllProjectGroupsWithAllDetails()
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Get all project groups with all details.
      *
      * @return All project groups
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      * @deprecated
      */
     List<ProjectGroup> getAllProjectGroupsWithProjects()
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Get a project group.
      *
      * @param projectGroupId The project group id
      * @return The project group summary
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectGroupSummary getProjectGroupSummary( int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Get a project group with all details.
      *
      * @param projectGroupId The project group id
      * @return The project group
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectGroup getProjectGroupWithProjects( int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Remove a project group.
      *
      * @param projectGroupId The project group id
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int removeProjectGroup( int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Update a project Group.
      *
      * @param projectGroup The project group to update
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectGroupSummary updateProjectGroup( ProjectGroupSummary projectGroup )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Build Definitions
@@ -185,22 +173,20 @@
      *
      * @param projectId The project id
      * @return The build definitions list
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<BuildDefinition> getBuildDefinitionsForProject( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Get the build definitions list of the project group.
      *
      * @param projectGroupId The project group id
      * @return The build definitions list
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<BuildDefinition> getBuildDefinitionsForProjectGroup( int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Update a project build definition.
@@ -208,11 +194,10 @@
      * @param projectId The project id
      * @param buildDef  The build defintion to update
      * @return the updated build definition
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     BuildDefinition updateBuildDefinitionForProject( int projectId, BuildDefinition buildDef
)
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Update a project group build definition.
@@ -220,11 +205,10 @@
      * @param projectGroupId The project group id
      * @param buildDef       The build defintion to update
      * @return the updated build definition
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     BuildDefinition updateBuildDefinitionForProjectGroup( int projectGroupId, BuildDefinition
buildDef )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add a project build definition.
@@ -232,11 +216,10 @@
      * @param projectId The project id
      * @param buildDef  The build defintion to update
      * @return the added build definition
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     BuildDefinition addBuildDefinitionToProject( int projectId, BuildDefinition buildDef
)
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add a project group buildDefinition.
@@ -244,11 +227,10 @@
      * @param projectGroupId The project group id
      * @param buildDef       The build defintion to update
      * @return the build definition added
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     BuildDefinition addBuildDefinitionToProjectGroup( int projectGroupId, BuildDefinition
buildDef )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Building
@@ -258,64 +240,58 @@
      * Add the project to the build queue.
      *
      * @param projectId The project id
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int addProjectToBuildQueue( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add the project to the build queue.
      *
      * @param projectId         The project id
      * @param buildDefinitionId The build definition id
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int addProjectToBuildQueue( int projectId, int buildDefinitionId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Build the project
      *
      * @param projectId The project id
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int buildProject( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Build the project
      *
      * @param projectId         The project id
      * @param buildDefinitionId The build definition id
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int buildProject( int projectId, int buildDefinitionId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Build the project group with the default build definition.
      *
      * @param projectGroupId The project group id
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int buildGroup( int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * 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
+     * @throws Exception
      */
     int buildGroup( int projectGroupId, int buildDefinitionId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
     // ----------------------------------------------------------------------
     // Build Results
     // ----------------------------------------------------------------------
@@ -325,11 +301,10 @@
      *
      * @param projectId The project id
      * @return The build result
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     BuildResult getLatestBuildResult( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Returns the build result.
@@ -337,33 +312,30 @@
      * @param projectId The project id
      * @param buildId   The build id
      * @return The build result
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     BuildResult getBuildResult( int projectId, int buildId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Returns the project build result summary list.
      *
      * @param projectId The project id
      * @return The build result list
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<BuildResultSummary> getBuildResultsForProject( int projectId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Remove the project build result.
      *
      * @param br The project build result
      * @return 0
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     int removeBuildResult( BuildResult br )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Returns the build output.
@@ -371,11 +343,10 @@
      * @param projectId The project id
      * @param buildId   The build id
      * @return The build output
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     String getBuildOutput( int projectId, int buildId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Maven 2.x projects
@@ -386,11 +357,10 @@
      *
      * @param url The POM url
      * @return The result of the action with the list of projects created
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     AddingResult addMavenTwoProject( String url )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add a maven 2.x project from an url.
@@ -398,11 +368,10 @@
      * @param url            The POM url
      * @param projectGroupId The id of the group where projects will be stored
      * @return The result of the action with the list of projects created
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     AddingResult addMavenTwoProject( String url, int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Maven 1.x projects
@@ -413,11 +382,10 @@
      *
      * @param url The POM url
      * @return The result of the action with the list of projects created
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     AddingResult addMavenOneProject( String url )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add a maven 1.x project from an url.
@@ -425,11 +393,10 @@
      * @param url            The POM url
      * @param projectGroupId The id of the group where projects will be stored
      * @return The result of the action with the list of projects created
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     AddingResult addMavenOneProject( String url, int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Maven ANT projects
@@ -440,11 +407,10 @@
      *
      * @param project The project to add. name, version and scm informations are required
      * @return The project populated with the id.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectSummary addAntProject( ProjectSummary project )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add an ANT project in the specified group.
@@ -452,11 +418,10 @@
      * @param project        The project to add. name, version and scm informations are required
      * @param projectGroupId The id of the group where projects will be stored
      * @return The project populated with the id.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectSummary addAntProject( ProjectSummary project, int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Maven Shell projects
@@ -467,11 +432,10 @@
      *
      * @param project The project to add. name, version and scm informations are required
      * @return The project populated with the id.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectSummary addShellProject( ProjectSummary project )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add an shell project in the specified group.
@@ -479,11 +443,10 @@
      * @param project        The project to add. name, version and scm informations are required
      * @param projectGroupId The id of the group where projects will be stored
      * @return The project populated with the id.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     ProjectSummary addShellProject( ProjectSummary project, int projectGroupId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // ADMIN TASKS
@@ -497,44 +460,40 @@
      * Return the schedules list.
      *
      * @return The schedule list.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<Schedule> getSchedules()
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Return the schedule defined by this id.
      *
      * @param scheduleId The schedule id
      * @return The schedule.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     Schedule getSchedule( int scheduleId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Add the schedule.
      *
      * @param schedule The schedule
      * @return The schedule.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     Schedule addSchedule( Schedule schedule )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Update the schedule.
      *
      * @param schedule The schedule
      * @return The schedule.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     Schedule updateSchedule( Schedule schedule )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Profiles
@@ -544,22 +503,20 @@
      * Return the profiles list.
      *
      * @return The profiles list.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<Profile> getProfiles()
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Return the profile defined by this id.
      *
      * @param profileId The profile id
      * @return The profile.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     Profile getProfile( int profileId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // Installations
@@ -569,29 +526,27 @@
      * Return the installations list.
      *
      * @return The installations list.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     List<Installation> getInstallations()
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     /**
      * Return the installation defined by this id.
      *
      * @param installationId The installation id
      * @return The installation.
-     * @throws ContinuumException
-     * @throws XmlRpcException
+     * @throws Exception
      */
     Installation getInstallation( int installationId )
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // SystemConfiguration
     // ----------------------------------------------------------------------
 
     SystemConfiguration getSystemConfiguration()
-        throws ContinuumException, XmlRpcException;
+        throws Exception;
 
     // ----------------------------------------------------------------------
     // TODO:Users
@@ -602,5 +557,5 @@
     // ----------------------------------------------------------------------
 
     boolean ping()
-        throws ContinuumException;
+        throws Exception;
 }

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=593105&r1=593104&r2=593105&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
Thu Nov  8 01:55:09 2007
@@ -19,7 +19,6 @@
  * under the License.
  */
 
-import org.apache.maven.continuum.ContinuumException;
 import org.apache.maven.continuum.xmlrpc.ContinuumService;
 import org.apache.maven.continuum.xmlrpc.project.AddingResult;
 import org.apache.maven.continuum.xmlrpc.project.BuildDefinition;
@@ -97,16 +96,9 @@
     }
 
     public boolean ping()
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.ping();
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.ping();
     }
 
     // ----------------------------------------------------------------------
@@ -114,72 +106,37 @@
     // ----------------------------------------------------------------------
 
     public List<ProjectSummary> getProjects( int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getProjects( projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getProjects( projectGroupId );
     }
 
     public ProjectSummary getProjectSummary( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getProjectSummary( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getProjectSummary( projectId );
     }
 
     public Project getProjectWithAllDetails( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getProjectWithAllDetails( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getProjectWithAllDetails( projectId );
     }
 
     public int removeProject( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.removeProject( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.removeProject( projectId );
     }
 
     public ProjectSummary updateProject( ProjectSummary project )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.updateProject( project );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.updateProject( project );
     }
 
     public ProjectSummary refreshProjectSummary( ProjectSummary project )
-        throws ContinuumException
+        throws Exception
     {
         if ( project == null )
         {
@@ -189,7 +146,7 @@
     }
 
     public Project refreshProjectWithAllDetails( ProjectSummary project )
-        throws ContinuumException
+        throws Exception
     {
         if ( project == null )
         {
@@ -203,78 +160,43 @@
     // ----------------------------------------------------------------------
 
     public List<ProjectGroupSummary> getAllProjectGroups()
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getAllProjectGroups();
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getAllProjectGroups();
     }
 
     public List<ProjectGroup> getAllProjectGroupsWithAllDetails()
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getAllProjectGroupsWithAllDetails();
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getAllProjectGroupsWithAllDetails();
     }
 
     public List<ProjectGroup> getAllProjectGroupsWithProjects()
-        throws ContinuumException
+        throws Exception
     {
         return getAllProjectGroupsWithAllDetails();
     }
 
     public ProjectGroupSummary getProjectGroupSummary( int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getProjectGroupSummary( projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getProjectGroupSummary( projectGroupId );
     }
 
     public ProjectGroup getProjectGroupWithProjects( int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getProjectGroupWithProjects( projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getProjectGroupWithProjects( projectGroupId );
     }
 
     public int removeProjectGroup( int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.removeProjectGroup( projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.removeProjectGroup( projectGroupId );
     }
 
     public ProjectGroupSummary refreshProjectGroupSummary( ProjectGroupSummary projectGroup
)
-        throws ContinuumException
+        throws Exception
     {
         if ( projectGroup == null )
         {
@@ -284,7 +206,7 @@
     }
 
     public ProjectGroup refreshProjectGroupSummaryWithProjects( ProjectGroupSummary projectGroup
)
-        throws ContinuumException
+        throws Exception
     {
         if ( projectGroup == null )
         {
@@ -294,16 +216,9 @@
     }
 
     public ProjectGroupSummary updateProjectGroup( ProjectGroupSummary projectGroup )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.updateProjectGroup( projectGroup );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.updateProjectGroup( projectGroup );
     }
 
     // ----------------------------------------------------------------------
@@ -311,81 +226,39 @@
     // ----------------------------------------------------------------------
 
     public List<BuildDefinition> getBuildDefinitionsForProject( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getBuildDefinitionsForProject( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getBuildDefinitionsForProject( projectId );
     }
 
     public List<BuildDefinition> getBuildDefinitionsForProjectGroup( int projectGroupId
)
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getBuildDefinitionsForProjectGroup( projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getBuildDefinitionsForProjectGroup( projectGroupId );
     }
 
     public BuildDefinition updateBuildDefinitionForProject( int projectId, BuildDefinition
buildDef )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.updateBuildDefinitionForProject( projectId, buildDef );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.updateBuildDefinitionForProject( projectId, buildDef );
     }
 
     public BuildDefinition updateBuildDefinitionForProjectGroup( int projectGroupId, BuildDefinition
buildDef )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.updateBuildDefinitionForProjectGroup( projectGroupId, buildDef
);
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.updateBuildDefinitionForProjectGroup( projectGroupId, buildDef );
     }
 
     public BuildDefinition addBuildDefinitionToProject( int projectId, BuildDefinition buildDef
)
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addBuildDefinitionToProject( projectId, buildDef );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addBuildDefinitionToProject( projectId, buildDef );
     }
 
     public BuildDefinition addBuildDefinitionToProjectGroup( int projectGroupId, BuildDefinition
buildDef )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addBuildDefinitionToProjectGroup( projectGroupId, buildDef );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addBuildDefinitionToProjectGroup( projectGroupId, buildDef );
     }
 
     // ----------------------------------------------------------------------
@@ -393,81 +266,39 @@
     // ----------------------------------------------------------------------
 
     public int addProjectToBuildQueue( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addProjectToBuildQueue( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addProjectToBuildQueue( projectId );
     }
 
     public int addProjectToBuildQueue( int projectId, int buildDefinitionId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addProjectToBuildQueue( projectId, buildDefinitionId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addProjectToBuildQueue( projectId, buildDefinitionId );
     }
 
     public int buildProject( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.buildProject( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.buildProject( projectId );
     }
 
     public int buildProject( int projectId, int buildDefinitionId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.buildProject( projectId, buildDefinitionId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.buildProject( projectId, buildDefinitionId );
     }
 
     public int buildGroup( int projectGroupId )
-        throws ContinuumException, XmlRpcException
+        throws Exception, XmlRpcException
     {
-        try
-        {
-            return continuum.buildGroup( projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.buildGroup( projectGroupId );
     }
 
     public int buildGroup( int projectGroupId, int buildDefinitionId )
-        throws ContinuumException, XmlRpcException
+        throws Exception, XmlRpcException
     {
-        try
-        {
-            return continuum.buildGroup( projectGroupId, buildDefinitionId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.buildGroup( projectGroupId, buildDefinitionId );
     }
 
     // ----------------------------------------------------------------------
@@ -475,68 +306,33 @@
     // ----------------------------------------------------------------------
 
     public BuildResult getLatestBuildResult( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getLatestBuildResult( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getLatestBuildResult( projectId );
     }
 
     public BuildResult getBuildResult( int projectId, int buildId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getBuildResult( projectId, buildId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getBuildResult( projectId, buildId );
     }
 
     public List<BuildResultSummary> getBuildResultsForProject( int projectId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getBuildResultsForProject( projectId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getBuildResultsForProject( projectId );
     }
 
     public int removeBuildResult( BuildResult br )
-        throws ContinuumException, XmlRpcException
+        throws Exception, XmlRpcException
     {
-        try
-        {
-            return continuum.removeBuildResult( br );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.removeBuildResult( br );
     }
 
     public String getBuildOutput( int projectId, int buildId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getBuildOutput( projectId, buildId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getBuildOutput( projectId, buildId );
     }
 
     // ----------------------------------------------------------------------
@@ -544,29 +340,15 @@
     // ----------------------------------------------------------------------
 
     public AddingResult addMavenTwoProject( String url )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addMavenTwoProject( url );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addMavenTwoProject( url );
     }
 
     public AddingResult addMavenTwoProject( String url, int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addMavenTwoProject( url, projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addMavenTwoProject( url, projectGroupId );
     }
 
     // ----------------------------------------------------------------------
@@ -574,29 +356,15 @@
     // ----------------------------------------------------------------------
 
     public AddingResult addMavenOneProject( String url )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addMavenOneProject( url );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addMavenOneProject( url );
     }
 
     public AddingResult addMavenOneProject( String url, int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addMavenOneProject( url, projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addMavenOneProject( url, projectGroupId );
     }
 
     // ----------------------------------------------------------------------
@@ -604,29 +372,15 @@
     // ----------------------------------------------------------------------
 
     public ProjectSummary addAntProject( ProjectSummary project )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addAntProject( project );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addAntProject( project );
     }
 
     public ProjectSummary addAntProject( ProjectSummary project, int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addAntProject( project, projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addAntProject( project, projectGroupId );
     }
 
     // ----------------------------------------------------------------------
@@ -634,29 +388,15 @@
     // ----------------------------------------------------------------------
 
     public ProjectSummary addShellProject( ProjectSummary project )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addShellProject( project );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addShellProject( project );
     }
 
     public ProjectSummary addShellProject( ProjectSummary project, int projectGroupId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addShellProject( project, projectGroupId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addShellProject( project, projectGroupId );
     }
 
     // ----------------------------------------------------------------------
@@ -664,55 +404,27 @@
     // ----------------------------------------------------------------------
 
     public List<Schedule> getSchedules()
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getSchedules();
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getSchedules();
     }
 
     public Schedule getSchedule( int scheduleId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getSchedule( scheduleId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getSchedule( scheduleId );
     }
 
     public Schedule addSchedule( Schedule schedule )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.addSchedule( schedule );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.addSchedule( schedule );
     }
 
     public Schedule updateSchedule( Schedule schedule )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.updateSchedule( schedule );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.updateSchedule( schedule );
     }
 
     // ----------------------------------------------------------------------
@@ -720,29 +432,15 @@
     // ----------------------------------------------------------------------
 
     public List<Profile> getProfiles()
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getProfiles();
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getProfiles();
     }
 
     public Profile getProfile( int profileId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getProfile( profileId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getProfile( profileId );
     }
 
     // ----------------------------------------------------------------------
@@ -750,29 +448,15 @@
     // ----------------------------------------------------------------------
 
     public List<Installation> getInstallations()
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getInstallations();
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getInstallations();
     }
 
     public Installation getInstallation( int installationId )
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getInstallation( installationId );
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getInstallation( installationId );
     }
 
     // ----------------------------------------------------------------------
@@ -780,16 +464,9 @@
     // ----------------------------------------------------------------------
 
     public SystemConfiguration getSystemConfiguration()
-        throws ContinuumException
+        throws Exception
     {
-        try
-        {
-            return continuum.getSystemConfiguration();
-        }
-        catch ( Exception e )
-        {
-            throw new ContinuumException( "The remote method failed.", e );
-        }
+        return continuum.getSystemConfiguration();
     }
 
     // ----------------------------------------------------------------------

Modified: maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/pom.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/pom.xml?rev=593105&r1=593104&r2=593105&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/pom.xml (original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/pom.xml Thu Nov  8 01:55:09
2007
@@ -34,6 +34,10 @@
     </dependency>
     <dependency>
       <groupId>org.apache.maven.continuum</groupId>
+      <artifactId>continuum-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.continuum</groupId>
       <artifactId>continuum-security</artifactId>
     </dependency>
     <dependency>



Mime
View raw message