[MNG-4860] Allow management of project building request kept inside MavenProject instances

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1021500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-10-11 20:49:53 +00:00
parent 1036f38593
commit 947973e857
1 changed files with 22 additions and 0 deletions

View File

@ -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;
}
}