public class RequireFileChecksum extends AbstractNonCacheableEnforcerRule
| Constructor and Description |
|---|
RequireFileChecksum() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
void |
setChecksum(String checksum)
The expected checksum value.
|
void |
setFile(File file)
The file to check.
|
void |
setType(String type)
The checksum algorithm to use.
|
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRulehelper - The helper provides access to the log, MavenSession and has
helpers to get common components. It is also able to lookup components
by class name.EnforcerRuleException - the enforcer rule exceptionpublic void setFile(File file)
file - filepublic void setChecksum(String checksum)
checksum - checksumpublic void setType(String type)
type - algorithmCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.