You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2008/01/08 22:02:00 UTC
svn commit: r610151 -
/maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java
Author: jdcasey
Date: Tue Jan 8 13:01:59 2008
New Revision: 610151
URL: http://svn.apache.org/viewvc?rev=610151&view=rev
Log:
Add a constructor with only a container parameter for backwards compat, to allow plugins to continue to function.
Modified:
maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java
Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java?rev=610151&r1=610150&r2=610151&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java Tue Jan 8 13:01:59 2008
@@ -21,6 +21,7 @@
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;
@@ -59,6 +60,13 @@
{
this.container = container;
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()