public interface Execution
Mojo implementations.net.nicoulaj.maven.plugins.checksum.mojo| Modifier and Type | Method and Description |
|---|---|
void |
addAlgorithm(String algorithm)
Add an algorithm to the list of checksum algorithms to be used by the execution.
|
void |
addFile(ChecksumFile file)
Add a file to the list of files to be processed by the execution.
|
void |
addTarget(ExecutionTarget target)
Add a target to the list of
ExecutionTarget to be
used by the execution. |
void |
checkParameters()
Check that an execution can be run with the {#run} method.
|
List<String> |
getAlgorithms()
Get the list of checksum algorithms to be used by the execution.
|
List<ChecksumFile> |
getFiles()
Get the list of files to be processed by the execution.
|
String |
getSubPath()
Get the part of relative path that will be removed.
|
List<ExecutionTarget> |
getTargets()
Get the list of
ExecutionTarget to be used by the
execution. |
void |
removeAlgorithm(String algorithm)
Remove an algorithm from the list of checksum algorithms to be used by the execution.
|
void |
removeFile(ChecksumFile file)
Remove a file from the list of files to be processed by the execution.
|
void |
removeTarget(ExecutionTarget target)
Remove a target from the list of
ExecutionTarget to
be used by the execution. |
void |
run()
Run the execution using for the files, algorithms and targets set.
|
void |
setAlgorithms(List<String> algorithms)
Set the list of checksum algorithms to be used by the execution.
|
void |
setFiles(List<ChecksumFile> files)
Set the list of files to be processed by the execution.
|
void |
setSubPath(String subPath)
Set the part of relative path that will be removed.
|
void |
setTargets(List<ExecutionTarget> targets)
Set the list of
ExecutionTarget to be used by the
execution. |
List<ChecksumFile> getFiles()
void setFiles(List<ChecksumFile> files)
files - the value to set.String getSubPath()
void setSubPath(String subPath)
subPath - of relative path that will be removed.void addFile(ChecksumFile file)
file - the file to add.void removeFile(ChecksumFile file)
file - the file to remove.List<String> getAlgorithms()
void setAlgorithms(List<String> algorithms)
algorithms - the value to set.void addAlgorithm(String algorithm)
algorithm - the algorithm to add.void removeAlgorithm(String algorithm)
algorithm - the algorithm to remove.List<ExecutionTarget> getTargets()
ExecutionTarget to be used by the
execution.void setTargets(List<ExecutionTarget> targets)
ExecutionTarget to be used by the
execution.targets - the value to set.void addTarget(ExecutionTarget target)
ExecutionTarget to be
used by the execution.target - the target to add.void removeTarget(ExecutionTarget target)
ExecutionTarget to
be used by the execution.target - the target to remove.void checkParameters()
throws ExecutionException
ExecutionException - if some parameters are not initialized or invalid.void run() throws ExecutionException
ExecutionException - if an error happens while running the execution.Copyright © 2010–2016. All rights reserved.