@Mojo(name="verify", defaultPhase=INTEGRATION_TEST) public class VerifierMojo extends AbstractMojo
Constructor and Description |
---|
VerifierMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected File |
getAbsoluteFileToCheck(File file) |
void |
setBaseDir(File theBasedir) |
void |
setFailOnError(boolean failOnError) |
void |
setVerificationFile(File file) |
void |
setVerificationResultPrinter(VerificationResultPrinter printer) |
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException
MojoExecutionException
protected File getAbsoluteFileToCheck(File file)
file
- the file path of the file to check (can be relative or absolute). If relative
the project's basedir will be prefixed.public void setBaseDir(File theBasedir)
theBasedir
- Set the base directory.public void setVerificationFile(File file)
file
- Set the file for verification.public void setVerificationResultPrinter(VerificationResultPrinter printer)
printer
- The verification result printer.VerificationResultPrinter}
public void setFailOnError(boolean failOnError)
failOnError
- true to fail on error false otherwise.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.