public class RequireActiveProfile extends AbstractNonCacheableEnforcerRule
| Constructor and Description |
|---|
RequireActiveProfile() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(EnforcerRuleHelper theHelper) |
String |
getProfiles() |
boolean |
isAll() |
protected boolean |
isProfileActive(MavenProject project,
String profileId)
Checks if profile is active.
|
void |
setAll(boolean all) |
void |
setProfiles(String profiles) |
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic RequireActiveProfile()
public final String getProfiles()
public final void setProfiles(String profiles)
public final boolean isAll()
public final void setAll(boolean all)
public void execute(EnforcerRuleHelper theHelper) throws EnforcerRuleException
EnforcerRuleExceptionprotected boolean isProfileActive(MavenProject project, String profileId)
project - the projectprofileId - the profile nametrue if profile is active, otherwise falseCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.