public class RequireActiveProfile extends AbstractNonCacheableEnforcerRule
| Modifier and Type | Field and Description |
|---|---|
boolean |
all
Deprecated.
the visibility will be reduced to private with the next major version
|
String |
profiles
Deprecated.
the visibility will be reduced to private with the next major version
|
message| Constructor and Description |
|---|
RequireActiveProfile() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper theHelper) |
String |
getProfiles() |
boolean |
isAll() |
protected boolean |
isProfileActive(org.apache.maven.project.MavenProject project,
String profileName)
Checks if profile is active.
|
void |
setAll(boolean all) |
void |
setProfiles(String profiles) |
getCacheId, isCacheable, isResultValidgetMessage, setMessagepublic String profiles
#setProfiles(String)},
#getProfiles()}public boolean all
#setAll(boolean)},
#isAll()}public final String getProfiles()
public final void setProfiles(String profiles)
public final boolean isAll()
public final void setAll(boolean all)
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper theHelper)
throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
org.apache.maven.enforcer.rule.api.EnforcerRuleExceptionprotected boolean isProfileActive(org.apache.maven.project.MavenProject project,
String profileName)
project - the projectprofileName - the profile nametrue if profile is active, otherwise falseCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.