mirror of https://github.com/apache/maven.git
Adding constructor to the default build context manager, to allow simpler unit testing with it.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@500078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08825262be
commit
3b44ad3ac3
|
@ -18,10 +18,20 @@ public class DefaultBuildContextManager
|
|||
{
|
||||
public static final String ROLE_HINT = "default";
|
||||
|
||||
protected static final String BUILD_CONTEXT_MAP_KEY = "org.apache.maven.context:DefaultBuildContextManager:contextMap";
|
||||
protected static final String BUILD_CONTEXT_MAP_KEY = ROLE + ":" + ROLE_HINT + ":contextMap";
|
||||
|
||||
private Context context;
|
||||
|
||||
public DefaultBuildContextManager()
|
||||
{
|
||||
// used for plexus initialization
|
||||
}
|
||||
|
||||
public DefaultBuildContextManager( Context context )
|
||||
{
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance of DefaultBuildContext, and return it. Each method call creates a brand
|
||||
* new instance.
|
||||
|
|
Loading…
Reference in New Issue