/** * 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; }
protected ProfileSelector newProfileSelector() { DefaultProfileSelector profileSelector = new DefaultProfileSelector(); for ( ProfileActivator activator : newProfileActivators() ) { profileSelector.addProfileActivator( activator ); } return profileSelector; }
public DefaultModelBuilder setProfileSelector( ProfileSelector profileSelector ) { this.profileSelector = profileSelector; return this; }