org.hudsonci.maven.eventspy_30
Class ProfileCollector

java.lang.Object
  extended by org.hudsonci.maven.eventspy_30.ProfileCollector

public class ProfileCollector
extends Object

Extracts Profiles from a MavenProject and converts them to ResolvedProfiles. Currently extracts pom and external profiles, but not those from the super pom. Benjamin's comments regarding the usefulness of super pom profiles: There is currently only one profile in the super POM (release-profile) which is scheduled for removal in future versions as users should rather set up their own release profile according their tastes. Likewise, I don't see us adding any other profiles to the super POM. Note: the super pom has an empty string for the key and is always present but may not have any profiles. It will only be added if there are profiles. TODO: may want to make this a special string similar to 'external', 'super-pom' or the GAV?

Since:
2.1.0
Author:
Jamie Whitehouse

Method Summary
static Collection<ResolvedProfile> collect(org.apache.maven.project.MavenProject project)
          Collects the ResolvedProfiles from the MavenProject up through all parent hierarchies and any external (settings.xml) profiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

collect

public static Collection<ResolvedProfile> collect(org.apache.maven.project.MavenProject project)
Collects the ResolvedProfiles from the MavenProject up through all parent hierarchies and any external (settings.xml) profiles.

Parameters:
project - the starting project
Returns:
The profiles within this projects hierarchy, never null.
See Also:
for similar information.


Copyright © 2004-2011 Hudson. All Rights Reserved.