public class MavenLogTarget extends Object implements ExecutionTarget
ExecutionTarget that writes digests to a Maven Log.Log| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.plugin.logging.Log |
logger
The Maven
Log. |
| Constructor and Description |
|---|
MavenLogTarget(org.apache.maven.plugin.logging.Log logger)
Build an new instance of
MavenLogTarget. |
| Modifier and Type | Method and Description |
|---|---|
void |
close(String subPath)
Close the target.
|
void |
init()
Initialize the target.
|
void |
write(String digest,
ChecksumFile file,
String algorithm)
Write the hashcode calculated for the given file and algorithm to the target.
|
public MavenLogTarget(org.apache.maven.plugin.logging.Log logger)
MavenLogTarget.logger - the Maven Log to use.public void init()
Should be called before first call to ExecutionTarget.write(String, ChecksumFile, String).
init in interface ExecutionTargetpublic void write(String digest, ChecksumFile file, String algorithm)
write in interface ExecutionTargetdigest - the digest to write.file - the file for which the digest was calculated.algorithm - the algorithm used to calculate the digest.public void close(String subPath)
Should be called after last call to ExecutionTarget.write(String, ChecksumFile, String).
close in interface ExecutionTargetsubPath - part of relative path to exclude from file pathCopyright © 2010–2018. All rights reserved.