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/04 14:15:44 UTC

svn commit: r682354 - /maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java

Author: vsiveton
Date: Mon Aug  4 05:15:43 2008
New Revision: 682354

URL: http://svn.apache.org/viewvc?rev=682354&view=rev
Log:
o added inheritance pom's profiles

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

Modified: maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java?rev=682354&r1=682353&r2=682354&view=diff
==============================================================================
--- maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java (original)
+++ maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java Mon Aug  4 05:15:43 2008
@@ -266,6 +266,21 @@
             profilesManager.addProfile( profile );
             profilesManager.explicitlyActivate( profile.getId() );
         }
+
+        MavenProject parent = project.getParent();
+        while( parent != null )
+        {
+            Iterator it2 = parent.getModel().getProfiles().iterator();
+            while ( it2.hasNext() )
+            {
+                Profile profile = (Profile) it2.next();
+
+                profilesManager.addProfile( profile );
+                profilesManager.explicitlyActivate( profile.getId() );
+            }
+
+            parent = parent.getParent();
+        }
     }
 
     /**