Package org.apache.maven.enforcer.rules
Class RequireActiveProfile
java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
org.apache.maven.enforcer.rules.RequireActiveProfile
- All Implemented Interfaces:
EnforcerRuleBase
@Named("requireActiveProfile")
public final class RequireActiveProfile
extends AbstractStandardEnforcerRule
This rule checks that some profiles are active.
- Author:
- Brian Fox
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
getLog()
boolean
isAll()
void
setAll
(boolean all) void
setLog
(EnforcerLogger arg0) void
setProfiles
(String profiles) toString()
Methods inherited from class org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
formatLocation, getMessage, setMessage
Methods inherited from class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
getCacheId, getLevel
-
Constructor Details
-
RequireActiveProfile
-
-
Method Details
-
getProfiles
-
setProfiles
-
isAll
-
setAll
-
execute
- Specified by:
execute
in classAbstractEnforcerRule
- Throws:
EnforcerRuleException
-
toString
-
setLog
- Specified by:
setLog
in interfaceEnforcerRuleBase
-
getLog
-