本文整理汇总了Java中org.apache.maven.model.profile.ProfileSelector类的典型用法代码示例。如果您正苦于以下问题:Java ProfileSelector类的具体用法?Java ProfileSelector怎么用?Java ProfileSelector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProfileSelector类属于org.apache.maven.model.profile包,在下文中一共展示了ProfileSelector类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DefaultProfileManager
import org.apache.maven.model.profile.ProfileSelector; //导入依赖的package包/类
/**
* 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;
}
示例2: newProfileSelector
import org.apache.maven.model.profile.ProfileSelector; //导入依赖的package包/类
protected ProfileSelector newProfileSelector()
{
DefaultProfileSelector profileSelector = new DefaultProfileSelector();
for ( ProfileActivator activator : newProfileActivators() )
{
profileSelector.addProfileActivator( activator );
}
return profileSelector;
}
示例3: setProfileSelector
import org.apache.maven.model.profile.ProfileSelector; //导入依赖的package包/类
public DefaultModelBuilder setProfileSelector( ProfileSelector profileSelector )
{
this.profileSelector = profileSelector;
return this;
}