org.apache.maven.plugin.verifier
Class VerifierMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
VerifierMojo()
           
 
Method Summary
 void execute()
           
protected  java.io.File getAbsoluteFileToCheck(java.io.File file)
           
 void setBaseDir(java.io.File basedir)
           
 void setFailOnError(boolean failOnError)
           
 void setVerificationFile(java.io.File file)
           
 void setVerificationResultPrinter(VerificationResultPrinter printer)
           
 
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
 

Constructor Detail

VerifierMojo

public VerifierMojo()
Method Detail

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-2010 Apache Software Foundation. All Rights Reserved.