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 existence or non-existence of files/directories an optionally checks file content against a regexp.
- Version:
- $Id: VerifierMojo.java 312877 2005-10-11 13:35:24Z brett $
- Author:
- Vincent Massol
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 java.io.File getAbsoluteFileToCheck(java.io.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(java.io.File basedir)
setVerificationFile
public void setVerificationFile(java.io.File file)
setVerificationResultPrinter
public void setVerificationResultPrinter(VerificationResultPrinter printer)
setFailOnError
public void setFailOnError(boolean failOnError)
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.