Java 类org.apache.maven.model.profile.ProfileSelector 实例源码

项目:oceano    文件:DefaultProfileManager.java   
/**
 * the properties passed to the profile manager are the props that
 * are passed to maven, possibly containing profile activator properties
 *
 */
public DefaultProfileManager( PlexusContainer container, Properties props )
{
    try
    {
        this.profileSelector = container.lookup( ProfileSelector.class );
        this.logger = ( (MutablePlexusContainer) container ).getLogger();
    }
    catch ( ComponentLookupException e )
    {
        throw new IllegalStateException( e );
    }
    this.requestProperties = props;
}
项目:oceano    文件:DefaultModelBuilderFactory.java   
protected ProfileSelector newProfileSelector()
{
    DefaultProfileSelector profileSelector = new DefaultProfileSelector();

    for ( ProfileActivator activator : newProfileActivators() )
    {
        profileSelector.addProfileActivator( activator );
    }

    return profileSelector;
}
项目:oceano    文件:DefaultModelBuilder.java   
public DefaultModelBuilder setProfileSelector( ProfileSelector profileSelector )
{
    this.profileSelector = profileSelector;
    return this;
}