Add a constructor with only a container parameter for backwards compat, to allow plugins to continue to function.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@610151 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2008-01-08 21:01:59 +00:00
parent a0e3d00278
commit a4a9ae668e
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,7 @@ package org.apache.maven.profiles;
import org.apache.maven.model.Activation;
import org.apache.maven.model.Profile;
import org.apache.maven.profiles.activation.DefaultProfileActivationContext;
import org.apache.maven.profiles.activation.ProfileActivationContext;
import org.apache.maven.profiles.activation.ProfileActivationException;
import org.apache.maven.profiles.activation.ProfileActivator;
@ -61,6 +62,13 @@ public class DefaultProfileManager
this.profileActivationContext = profileActivationContext;
}
// TODO: Remove this, if possible. It uses system properties, which are not safe for IDE and other embedded environments.
public DefaultProfileManager( PlexusContainer container )
{
this.container = container;
profileActivationContext = new DefaultProfileActivationContext( System.getProperties(), false );
}
public ProfileActivationContext getProfileActivationContext()
{
return profileActivationContext;