org.apache.maven.plugin.verifier
Class VerifierMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.verifier.VerifierMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class VerifierMojo
- extends org.apache.maven.plugin.AbstractMojo
Verifies the existence or non-existence of files/directories and optionally checks file content against a regular expression.
- Version:
- $Id: VerifierMojo.java 900472 2010-01-18 17:36:37Z dennisl $
- Author:
- Vincent Massol
- Is defined by the goal name:
- verify
- Is bound to the specified phase of the standard build lifecycle:
- integration-test
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerifierMojo
public VerifierMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getAbsoluteFileToCheck
protected File getAbsoluteFileToCheck(File file)
- Parameters:
file
- the file path of the file to check (can be relative or absolute). If relative
the project's basedir will be prefixed.
- Returns:
- the absolute file path of the file to check
setBaseDir
public void setBaseDir(File basedir)
setVerificationFile
public void setVerificationFile(File file)
setVerificationResultPrinter
public void setVerificationResultPrinter(VerificationResultPrinter printer)
setFailOnError
public void setFailOnError(boolean failOnError)
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.