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 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

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