You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2008/08/03 16:42:46 UTC
svn commit: r682181 -
/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java
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" );