|
||||||||||
| 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.RequireProperty
public class RequireProperty
This rule checks that certain properties are set.
| Field Summary | |
|---|---|
java.lang.String |
property
Specify the required property. |
java.lang.String |
regex
Match the property value to a given regular expression. |
java.lang.String |
regexMessage
Specify a warning message if the regular expression is not matched. |
| Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule |
|---|
message |
| Constructor Summary | |
|---|---|
RequireProperty()
|
|
| Method Summary | |
|---|---|
void |
execute(EnforcerRuleHelper helper)
Execute the rule. |
| 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 property
public java.lang.String regex
null (any value is ok).
public java.lang.String regexMessage
| Constructor Detail |
|---|
public RequireProperty()
| Method Detail |
|---|
public void execute(EnforcerRuleHelper helper)
throws EnforcerRuleException
helper - the helper
EnforcerRuleException - the enforcer rule exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||