mirror of https://github.com/apache/maven.git
o Added copy constructor
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@923403 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c13cd3abc4
commit
d7d94af169
|
@ -65,6 +65,36 @@ public class DefaultModelBuildingRequest
|
|||
|
||||
private ModelCache modelCache;
|
||||
|
||||
/**
|
||||
* Creates an empty request.
|
||||
*/
|
||||
public DefaultModelBuildingRequest()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a shallow copy of the specified request.
|
||||
*
|
||||
* @param request The request to copy, must not be {@code null}.
|
||||
*/
|
||||
public DefaultModelBuildingRequest( ModelBuildingRequest request )
|
||||
{
|
||||
setPomFile( request.getPomFile() );
|
||||
setModelSource( request.getModelSource() );
|
||||
setValidationLevel( request.getValidationLevel() );
|
||||
setProcessPlugins( request.isProcessPlugins() );
|
||||
setTwoPhaseBuilding( request.isTwoPhaseBuilding() );
|
||||
setProfiles( request.getProfiles() );
|
||||
setActiveProfileIds( request.getActiveProfileIds() );
|
||||
setInactiveProfileIds( request.getInactiveProfileIds() );
|
||||
setSystemProperties( request.getSystemProperties() );
|
||||
setUserProperties( request.getUserProperties() );
|
||||
setBuildStartTime( request.getBuildStartTime() );
|
||||
setModelResolver( request.getModelResolver() );
|
||||
setModelBuildingListener( request.getModelBuildingListener() );
|
||||
setModelCache( request.getModelCache() );
|
||||
}
|
||||
|
||||
public File getPomFile()
|
||||
{
|
||||
return pomFile;
|
||||
|
|
Loading…
Reference in New Issue