maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r572041 - /maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
Date Sun, 02 Sep 2007 17:25:01 GMT
Author: jvanzyl
Date: Sun Sep  2 10:25:01 2007
New Revision: 572041

URL: http://svn.apache.org/viewvc?rev=572041&view=rev
Log:
o remove redundancy

Modified:
    maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java

Modified: maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java?rev=572041&r1=572040&r2=572041&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
(original)
+++ maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
Sun Sep  2 10:25:01 2007
@@ -41,6 +41,7 @@
 import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.execution.MavenExecutionResult;
 import org.apache.maven.execution.MavenSession;
+import org.apache.maven.execution.ReactorManager;
 import org.apache.maven.lifecycle.LifecycleUtils;
 import org.apache.maven.model.Model;
 import org.apache.maven.model.Plugin;
@@ -421,7 +422,7 @@
     {
         MavenExecutionResult result = new DefaultMavenExecutionResult();
 
-        MavenProject project = null;
+        MavenProject project;
 
         try
         {
@@ -446,6 +447,18 @@
         }
 
         MavenProjectBuildingResult r = null;
+
+        ReactorManager reactorManager = maven.createReactorManager( request, result );
+
+        if ( result.hasExceptions() )
+        {
+            return result;
+        }
+
+        result.setTopologicallySortedProjects( reactorManager.getSortedProjects() );
+
+        // Now I should be able to pass this projects to the next request so that I don't
have to process
+        // any local projects again. And this logic is still too complicated.
 
         try
         {



Mime
View raw message