Class RequireProjectUrl
- java.lang.Object
-
- org.apache.maven.plugins.enforcer.AbstractMojoHausEnforcerRule
-
- org.apache.maven.plugins.enforcer.RequireProjectUrl
-
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule
,org.apache.maven.enforcer.rule.api.EnforcerRule2
public class RequireProjectUrl extends AbstractMojoHausEnforcerRule
This rule enforces the presence of an URL and optionally matches the URL against a regex- Since:
- 1.0-beta-4
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
regex
The regex that the url must match.
-
Constructor Summary
Constructors Constructor Description RequireProjectUrl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
java.lang.String
getCacheId()
boolean
isCacheable()
boolean
isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
-
Methods inherited from class org.apache.maven.plugins.enforcer.AbstractMojoHausEnforcerRule
getLevel, setLevel
-
-
-
-
Method Detail
-
execute
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
- Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException
-
isCacheable
public boolean isCacheable()
-
isResultValid
public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
-
getCacheId
public java.lang.String getCacheId()
-
-