maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r682181 - /maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
Date Sun, 03 Aug 2008 14:42:46 GMT
Author: vsiveton
Date: Sun Aug  3 07:42:45 2008
New Revision: 682181

URL: http://svn.apache.org/viewvc?rev=682181&view=rev
Log:
MPH-42: Active profiles recursively growing
Submitted by: Sander Verhagen
Reviewed by: Vincent Siveton

o patch applied

Modified:
    maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java

Modified: maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java?rev=682181&r1=682180&r2=682181&view=diff
==============================================================================
--- maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
(original)
+++ maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
Sun Aug  3 07:42:45 2008
@@ -24,6 +24,7 @@
 import org.apache.maven.project.MavenProject;
 
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
@@ -101,7 +102,10 @@
      */
     private void getActiveProfileStatement( MavenProject project, StringBuffer message )
     {
-        List profiles = collectActiveProfiles( project );
+        List profiles = new ArrayList();
+        // Get active profiles into our own list,
+        // since we'll be modifying it, further below
+        profiles.addAll(project.getActiveProfiles());
 
         message.append( "\n" );
 



Mime
View raw message