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, isResultValid
getLevel, getMessage, setLevel, setMessage
public RequireFileChecksum()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
helper
- 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 setChecksum(String checksum)
checksum
- checksumCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.