continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r394061 - /maven/continuum/branches/continuum-1.0.x/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java
Date Fri, 14 Apr 2006 10:59:47 GMT
Author: evenisse
Date: Fri Apr 14 03:59:12 2006
New Revision: 394061

URL: http://svn.apache.org/viewcvs?rev=394061&view=rev
Log:
Thow XmlRpcException

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java

Modified: maven/continuum/branches/continuum-1.0.x/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java?rev=394061&r1=394060&r2=394061&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java
Fri Apr 14 03:59:12 2006
@@ -76,6 +76,11 @@
                 set.add( populateProject( proj, new Project() ) );
             }
         }
+        else if ( obj instanceof XmlRpcException )
+        {
+            throw (XmlRpcException) obj;
+        }
+
         return (Project[]) set.toArray( new Project[set.size()] );
     }
 
@@ -91,6 +96,10 @@
             Hashtable table = (Hashtable) obj;
             populateProject( (Hashtable) table.get( "project" ), proj );
         }
+        else if ( obj instanceof XmlRpcException )
+        {
+            throw (XmlRpcException) obj;
+        }
     }
 
     public void buildProject( Project proj )
@@ -102,6 +111,11 @@
         //trigger
         vect.add( new Integer( 1 ) );
         Object obj = client.execute( "continuum.buildProject", vect );
+
+        if ( obj instanceof XmlRpcException )
+        {
+            throw (XmlRpcException) obj;
+        }
     }
 
     public void editProject( Project proj )
@@ -119,6 +133,10 @@
                 throw new RuntimeException( "Edit failed" );
             }
         }
+        else if ( obj instanceof XmlRpcException )
+        {
+            throw (XmlRpcException) obj;
+        }
     }
 
     public void addProject( Project proj )
@@ -135,6 +153,10 @@
             {
                 throw new RuntimeException( "Edit failed" );
             }
+        }
+        else if ( obj instanceof XmlRpcException )
+        {
+            throw (XmlRpcException) obj;
         }
     }
 



Mime
View raw message