continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r161833 - in maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum: Continuum.java DefaultContinuum.java
Date Tue, 19 Apr 2005 03:36:27 GMT
Author: jvanzyl
Date: Mon Apr 18 20:36:26 2005
New Revision: 161833

URL: http://svn.apache.org/viewcvs?view=rev&rev=161833
Log:
o adding getBuild( id ) to the Continuum interface

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=161832&r2=161833
==============================================================================
--- 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 20:36:26 2005
@@ -88,6 +88,13 @@
         throws ContinuumStoreException;
 
     // ----------------------------------------------------------------------
+    // Build information
+    // ----------------------------------------------------------------------
+
+    ContinuumBuild getBuild( String buildId )
+        throws ContinuumException;
+
+    // ----------------------------------------------------------------------
     // Different project types
     // ----------------------------------------------------------------------
 

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=161832&r2=161833
==============================================================================
--- 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 20:36:26 2005
@@ -197,7 +197,7 @@
 
     public String addProjectFromScm( String scmUrl,
                                      String builderType,
-                                     String projectName, 
+                                     String projectName,
                                      String nagEmailAddress,
                                      String version,
                                      Properties configuration )
@@ -382,6 +382,23 @@
             getLogger().error( "Error while enqueuing project.", e );
 
             throw new ContinuumException( "Error while creating enqueuing object.", e );
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // Build inforation
+    // ----------------------------------------------------------------------
+
+    public ContinuumBuild getBuild( String buildId )
+        throws ContinuumException
+    {
+        try
+        {
+            return store.getBuild( buildId );
+        }
+        catch ( ContinuumStoreException e )
+        {
+            throw new ContinuumException( "Unable to retrieve build with id = " + buildId,
e );
         }
     }
 



Mime
View raw message