continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r161840 - in maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum: Continuum.java DefaultContinuum.java
Date Tue, 19 Apr 2005 04:55:17 GMT
Author: jvanzyl
Date: Mon Apr 18 21:55:16 2005
New Revision: 161840

URL: http://svn.apache.org/viewcvs?view=rev&rev=161840
Log: (empty)


Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/Continuum.java
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/Continuum.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/Continuum.java?view=diff&r1=161839&r2=161840
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/Continuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/Continuum.java
Mon Apr 18 21:55:16 2005
@@ -19,6 +19,7 @@
 import java.net.URL;
 import java.util.Iterator;
 import java.util.Properties;
+import java.util.List;
 
 import org.apache.maven.continuum.project.ContinuumBuild;
 import org.apache.maven.continuum.project.ContinuumProject;
@@ -92,6 +93,9 @@
     // ----------------------------------------------------------------------
 
     ContinuumBuild getBuild( String buildId )
+        throws ContinuumException;
+
+    Iterator getBuildsForProject( String projectId )
         throws ContinuumException;
 
     // ----------------------------------------------------------------------

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?view=diff&r1=161839&r2=161840
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Mon Apr 18 21:55:16 2005
@@ -24,6 +24,7 @@
 import java.net.MalformedURLException;
 import java.util.Iterator;
 import java.util.Properties;
+import java.util.List;
 
 import org.apache.maven.continuum.buildcontroller.BuildController;
 import org.apache.maven.continuum.builder.ContinuumBuilder;
@@ -399,6 +400,19 @@
         catch ( ContinuumStoreException e )
         {
             throw new ContinuumException( "Unable to retrieve build with id = " + buildId,
e );
+        }
+    }
+
+    public Iterator getBuildsForProject( String projectId )
+        throws ContinuumException
+    {
+        try
+        {
+            return store.getBuildsForProject( projectId, 0, 0 );
+        }
+        catch ( ContinuumStoreException e )
+        {
+            throw new ContinuumException( "Cannot retrieve builds for project with id = "
+ projectId, e );
         }
     }
 



Mime
View raw message