public class RequireTextFileChecksum extends RequireFileChecksum
RequireFileChecksum
file
Constructor and Description |
---|
RequireTextFileChecksum() |
Modifier and Type | Method and Description |
---|---|
protected String |
calculateChecksum() |
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
void |
setEncoding(String encoding) |
void |
setNormalizeLineSeparatorTo(NormalizeLineSeparatorReader.LineSeparator normalizeLineSeparatorTo) |
calculateChecksum, setChecksum, setFile, setNonexistentFileMessage, setType
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public RequireTextFileChecksum()
public void setNormalizeLineSeparatorTo(NormalizeLineSeparatorReader.LineSeparator normalizeLineSeparatorTo)
public void setEncoding(String encoding)
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
execute
in interface EnforcerRule
execute
in class RequireFileChecksum
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 exceptionprotected String calculateChecksum() throws EnforcerRuleException
calculateChecksum
in class RequireFileChecksum
EnforcerRuleException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.