|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
org.apache.maven.plugins.enforcer.RequireActiveProfile
public class RequireActiveProfile
This rule checks that some profiles are active.
| Field Summary | |
|---|---|
boolean |
all
If all profiles must be active. |
java.lang.String |
profiles
Comma separated list of profiles to check. |
| Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule |
|---|
message |
| Constructor Summary | |
|---|---|
RequireActiveProfile()
|
|
| Method Summary | |
|---|---|
void |
execute(EnforcerRuleHelper theHelper)
|
protected boolean |
isProfileActive(org.apache.maven.project.MavenProject project,
java.lang.String profileName)
Checks if profile is active. |
| Methods inherited from class org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule |
|---|
getCacheId, isCacheable, isResultValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String profiles
public boolean all
| Constructor Detail |
|---|
public RequireActiveProfile()
| Method Detail |
|---|
public void execute(EnforcerRuleHelper theHelper)
throws EnforcerRuleException
EnforcerRuleException
protected boolean isProfileActive(org.apache.maven.project.MavenProject project,
java.lang.String profileName)
project - the projectprofileName - the profile name
true if profile is active
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||