Author: bentmann
Date: Mon Oct 11 20:49:53 2010
New Revision: 1021500

URL: http://svn.apache.org/viewvc?rev=1021500&view=rev
Log:
[MNG-4860] Allow management of project building request kept inside 
MavenProject instances

Modified:
    
maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

Modified: 
maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
URL: 
http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java?rev=1021500&r1=1021499&r2=1021500&view=diff
==============================================================================
--- 
maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
 (original)
+++ 
maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
 Mon Oct 11 20:49:53 2010
@@ -2146,4 +2146,26 @@ public class MavenProject
         lifecyclePhases.add( lifecyclePhase );
     }
 
+    /**
+     * Gets the project building request from which this project instance was 
created. <strong>Warning:</strong> This is
+     * an utility method that is meant to assist integrators of Maven, it must 
not be used by Maven plugins.
+     * 
+     * @return The project building request or {...@code null}.
+     */
+    public ProjectBuildingRequest getProjectBuildingRequest()
+    {
+        return projectBuilderConfiguration;
+    }
+
+    /**
+     * Sets the project building request from which this project instance was 
created. <strong>Warning:</strong> This is
+     * an utility method that is meant to assist integrators of Maven, it must 
not be used by Maven plugins.
+     * 
+     * @param projectBuildingRequest The project building request, may be 
{...@code null}.
+     */
+    public void setProjectBuildingRequest( ProjectBuildingRequest 
projectBuildingRequest )
+    {
+        projectBuilderConfiguration = projectBuildingRequest;
+    }
+
 }


Reply via email to