You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/03/03 01:33:55 UTC
svn commit: r749493 -
/maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java
Author: bentmann
Date: Tue Mar 3 00:33:55 2009
New Revision: 749493
URL: http://svn.apache.org/viewvc?rev=749493&view=rev
Log:
o Fixed handling of plugin groups
Modified:
maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java
Modified: maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java?rev=749493&r1=749492&r2=749493&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java (original)
+++ maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java Tue Mar 3 00:33:55 2009
@@ -158,7 +158,7 @@
Properties userProperties = request.getUserProperties();
if ( userProperties != null )
{
- for ( Iterator it = userProperties.keySet().iterator(); it.hasNext(); )
+ for ( Iterator<?> it = userProperties.keySet().iterator(); it.hasNext(); )
{
String key = (String) it.next();
if ( !requestProperties.containsKey( key ) )
@@ -191,6 +191,8 @@
Settings settings = request.getSettings();
+ request.setPluginGroups( settings.getPluginGroups() );
+
List settingsProfiles = settings.getProfiles();
List<String> settingsActiveProfileIds = settings.getActiveProfiles();
@@ -548,11 +550,11 @@
}
// Now, add in any event monitors from the Configuration instance.
- List configEventMonitors = configuration.getEventMonitors();
+ List<EventMonitor> configEventMonitors = configuration.getEventMonitors();
if ( ( configEventMonitors != null ) && !configEventMonitors.isEmpty() )
{
- for ( Iterator it = configEventMonitors.iterator(); it.hasNext(); )
+ for ( Iterator<EventMonitor> it = configEventMonitors.iterator(); it.hasNext(); )
{
EventMonitor monitor = (EventMonitor) it.next();
request.addEventMonitor( monitor );