public class RequireTextFileChecksum extends RequireFileChecksum
RequireFileChecksumfile| 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, setTypegetCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic RequireTextFileChecksum()
public void setNormalizeLineSeparatorTo(NormalizeLineSeparatorReader.LineSeparator normalizeLineSeparatorTo)
public void setEncoding(String encoding)
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRuleexecute in interface EnforcerRuleexecute in class RequireFileChecksumhelper - 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 RequireFileChecksumEnforcerRuleExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.