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
This rule enforces the presence of an URL and optionally matches the URL against a regex
- Since:
- 1.0-beta-4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) boolean
boolean
isResultValid
(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule) Methods inherited from class org.apache.maven.plugins.enforcer.AbstractMojoHausEnforcerRule
getLevel, setLevel
-
Field Details
-
regex
The regex that the url must match. Default is a non-empty URL
-
-
Constructor Details
-
RequireProjectUrl
public RequireProjectUrl()
-
-
Method Details
-
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
-