continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r170480 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Mon, 16 May 2005 22:10:51 GMT
Author: jvanzyl
Date: Mon May 16 15:10:50 2005
New Revision: 170480

URL: http://svn.apache.org/viewcvs?rev=170480&view=rev
Log:
o adding buildProjects()

Modified:
    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/DefaultContinuum.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=170480&r1=170479&r2=170480&view=diff
==============================================================================
--- 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 May 16 15:10:50 2005
@@ -16,9 +16,6 @@
  * limitations under the License.
  */
 
-import java.util.Collection;
-import java.util.Properties;
-
 import org.apache.maven.continuum.core.ContinuumCore;
 import org.apache.maven.continuum.execution.ant.AntBuildExecutor;
 import org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor;
@@ -31,10 +28,15 @@
 import org.apache.maven.continuum.project.MavenOneProject;
 import org.apache.maven.continuum.project.MavenTwoProject;
 import org.apache.maven.continuum.project.ShellProject;
+import org.apache.maven.continuum.project.builder.maven.MavenOneContinuumProjectBuilder;
+import org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder;
 import org.apache.maven.continuum.scm.CheckOutScmResult;
-
 import org.codehaus.plexus.logging.AbstractLogEnabled;
 
+import java.util.Collection;
+import java.util.Properties;
+import java.util.Iterator;
+
 /**
  * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
  * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l </a>
@@ -103,6 +105,33 @@
         return core.getCheckOutScmResultForProject( projectId );
     }
 
+    // ----------------------------------------------------------------------
+    // Building
+    // ----------------------------------------------------------------------
+
+    public void buildProjects()
+        throws ContinuumException
+    {
+        buildProjects( true );
+    }
+
+    public void buildProjects( boolean force )
+        throws ContinuumException
+    {
+        for ( Iterator i = getProjects().iterator(); i.hasNext(); )
+        {
+            ContinuumProject project = (ContinuumProject) i.next();
+
+            buildProject( project.getId(), force );
+        }
+    }
+
+    public void buildProject( String projectId )
+        throws ContinuumException
+    {
+        core.buildProject( projectId, true );
+    }
+
     public void buildProject( String projectId, boolean force )
         throws ContinuumException
     {
@@ -201,7 +230,7 @@
     public void addMavenOneProject( String metadataUrl )
         throws ContinuumException
     {
-        core.addProjectsFromUrl( metadataUrl, MavenOneBuildExecutor.ID );
+        core.addProjectsFromUrl( metadataUrl, MavenOneContinuumProjectBuilder.ID );
     }
 
     public void addMavenOneProject( MavenOneProject project )
@@ -252,7 +281,7 @@
     public void addMavenTwoProject( String metadataUrl )
         throws ContinuumException
     {
-        core.addProjectsFromUrl( metadataUrl, MavenTwoBuildExecutor.ID );
+        core.addProjectsFromUrl( metadataUrl, MavenTwoContinuumProjectBuilder.ID );
     }
 
     public void addMavenTwoProject( MavenTwoProject project )



Mime
View raw message