You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/07/27 10:33:11 UTC

svn commit: r798077 - /maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java

Author: bentmann
Date: Mon Jul 27 08:33:11 2009
New Revision: 798077

URL: http://svn.apache.org/viewvc?rev=798077&view=rev
Log:
o Enabled two-phase model building which allows to address inter-model dependencies within a reactor build

Modified:
    maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java

Modified: maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java?rev=798077&r1=798076&r2=798077&view=diff
==============================================================================
--- maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java (original)
+++ maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java Mon Jul 27 08:33:11 2009
@@ -37,4 +37,18 @@
     ModelBuildingResult build( ModelBuildingRequest request )
         throws ModelBuildingException;
 
+    /**
+     * Builds the effective model by completing the specified interim result which was produced by a previous call to
+     * {@link #build(ModelBuildingRequest)} with {@link ModelBuildingRequest#isTwoPhaseBuilding()} being {@code true}.
+     * The model building request passed to this method must be the same as the one used for the first phase of the
+     * model building.
+     * 
+     * @param request The model building request that holds the parameters, must not be {@code null}.
+     * @param result The interim result of the first phase of model building, must not be {@code null}.
+     * @return The result of the model building, never {@code null}.
+     * @throws ModelBuildingException If the effective model could not be built.
+     */
+    ModelBuildingResult build( ModelBuildingRequest request, ModelBuildingResult result )
+        throws ModelBuildingException;
+
 }