maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r610151 - /maven/components/trunk/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java
Date Tue, 08 Jan 2008 21:02:00 GMT
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()



Mime
View raw message