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. |
boolean |
isFailIfNoAlgorithms()
Execution should fail if no algorithm has been added.
|
boolean |
isFailIfNoFiles()
Execution should fail if no file has been added.
|
boolean |
isFailIfNoTargets()
Execution should fail if no target has been added.
|
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 |
setFailIfNoAlgorithms(boolean failIfNoAlgorithms)
Execution should fail if no algorithm has been added.
|
void |
setFailIfNoFiles(boolean failIfNoFiles)
Execution should fail if no file has been added.
|
void |
setFailIfNoTargets(boolean failIfNoTargets)
Execution should fail if no target has been added.
|
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.boolean isFailIfNoFiles()
true if execution should fail if no file has been addedvoid setFailIfNoFiles(boolean failIfNoFiles)
failIfNoFiles - true if execution should fail if no file has been addedboolean isFailIfNoAlgorithms()
true if execution should fail if no algorithm has been addedvoid setFailIfNoAlgorithms(boolean failIfNoAlgorithms)
failIfNoAlgorithms - true if execution should fail if no algorithm has been addedboolean isFailIfNoTargets()
true if execution should fail if no target has been addedvoid setFailIfNoTargets(boolean failIfNoTargets)
failIfNoTargets - true if execution should fail if no target has been addedvoid checkParameters()
throws ExecutionException
run() method.ExecutionException - if some parameters are not initialized or invalid.void run() throws ExecutionException
ExecutionException - if an error happens while running the execution.Copyright © 2010–2018. All rights reserved.