mirror of https://github.com/apache/maven.git
Restoring backward compat using the old constructor, which is now deprecated.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@523092 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0a3a36f657
commit
d1c52a0843
|
@ -27,6 +27,7 @@ import org.apache.maven.settings.Settings;
|
|||
import org.codehaus.plexus.PlexusContainer;
|
||||
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
|
@ -51,6 +52,40 @@ public class MavenSession
|
|||
|
||||
private Map reports = new LinkedHashMap();
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link MavenSession#MavenSession(PlexusContainer, MavenExecutionRequest, EventDispatcher, ReactorManager)}
|
||||
* instead. MavenExecutionRequest is now used for the rest of this information.
|
||||
*
|
||||
* @param container
|
||||
* @param settings
|
||||
* @param localRepository
|
||||
* @param eventDispatcher
|
||||
* @param reactorManager
|
||||
* @param goals
|
||||
* @param executionRootDir
|
||||
* @param executionProperties
|
||||
* @param startTime
|
||||
*/
|
||||
public MavenSession( PlexusContainer container, Settings settings, ArtifactRepository localRepository,
|
||||
EventDispatcher eventDispatcher, ReactorManager reactorManager, List goals,
|
||||
String executionRootDir, Properties executionProperties, Date startTime )
|
||||
{
|
||||
this.container = container;
|
||||
this.eventDispatcher = eventDispatcher;
|
||||
this.reactorManager = reactorManager;
|
||||
|
||||
MavenExecutionRequest request = new DefaultMavenExecutionRequest();
|
||||
|
||||
request.setBaseDirectory( new File( executionRootDir ) );
|
||||
request.setSettings( settings );
|
||||
request.setLocalRepository( localRepository );
|
||||
request.setGoals( goals );
|
||||
request.setProperties( executionProperties );
|
||||
request.setStartTime( startTime );
|
||||
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
public MavenSession( PlexusContainer container,
|
||||
MavenExecutionRequest request,
|
||||
EventDispatcher eventDispatcher,
|
||||
|
|
Loading…
Reference in New Issue