org.codehaus.mojo.fit
Class FitRunnerMojo

java.lang.Object
  extended byorg.apache.maven.plugin.AbstractMojo
      extended byorg.codehaus.mojo.fit.FitRunnerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class FitRunnerMojo
extends org.apache.maven.plugin.AbstractMojo

Mojo to run Fit tests via a Fixture

Author:
Mauro Talevi

Field Summary
protected  boolean caseSensitive
          Flag to indicate that path names are case sensitive
protected  java.util.List classpathElements
          Compile classpath.
protected  boolean ignoreFailures
          The option to ignore fixture failures
protected  java.lang.String outputDirectory
          The output directory where the results of Fit processing is written to
protected  java.lang.String[] parseTags
          The parsee tags used to identify the Fit tables.
protected  java.lang.String sourceDirectory
          The source directory containing the Fit fixtures
protected  java.lang.String sourceExcludes
          The filter for source file excludes, relative to the source directory, as CSV patterns.
protected  java.lang.String sourceIncludes
          The filter for source file includes, relative to the source directory, as CSV patterns.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
FitRunnerMojo()
           
 
Method Summary
protected  fit.Fixture createFixture()
           
protected  void ensureDirectoryExists(java.lang.String path)
           
 void execute()
           
protected  boolean failed(fit.Fixture fixture)
           
protected  java.lang.String[] listFiles(java.lang.String sourceDirectory, boolean caseSensitive, java.lang.String sourceIncludes, java.lang.String sourceExcludes)
           
protected  java.lang.String read(java.io.Reader in)
           
protected  void run(java.io.File in, java.io.File out)
           
protected  void run(java.io.Reader reader, java.io.Writer writer)
           
protected  void run(java.lang.String sourceDirectory, boolean caseSensitive, java.lang.String sourceIncludes, java.lang.String sourceExcludes, java.lang.String outputDirectory)
           
protected  void run(java.lang.String in, java.lang.String out)
           
protected  java.lang.String toPath(java.lang.String directory, java.lang.String name)
           
 
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
 

Field Detail

classpathElements

protected java.util.List classpathElements
Compile classpath.


sourceDirectory

protected java.lang.String sourceDirectory
The source directory containing the Fit fixtures


caseSensitive

protected boolean caseSensitive
Flag to indicate that path names are case sensitive


sourceIncludes

protected java.lang.String sourceIncludes
The filter for source file includes, relative to the source directory, as CSV patterns.


sourceExcludes

protected java.lang.String sourceExcludes
The filter for source file excludes, relative to the source directory, as CSV patterns.


parseTags

protected java.lang.String[] parseTags
The parsee tags used to identify the Fit tables.


outputDirectory

protected java.lang.String outputDirectory
The output directory where the results of Fit processing is written to


ignoreFailures

protected boolean ignoreFailures
The option to ignore fixture failures

Constructor Detail

FitRunnerMojo

public FitRunnerMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

createFixture

protected fit.Fixture createFixture()
                             throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

toPath

protected java.lang.String toPath(java.lang.String directory,
                                  java.lang.String name)

listFiles

protected java.lang.String[] listFiles(java.lang.String sourceDirectory,
                                       boolean caseSensitive,
                                       java.lang.String sourceIncludes,
                                       java.lang.String sourceExcludes)

ensureDirectoryExists

protected void ensureDirectoryExists(java.lang.String path)
                              throws java.io.IOException
Throws:
java.io.IOException

run

protected void run(java.lang.String sourceDirectory,
                   boolean caseSensitive,
                   java.lang.String sourceIncludes,
                   java.lang.String sourceExcludes,
                   java.lang.String outputDirectory)
            throws java.lang.Exception
Throws:
java.lang.Exception

run

protected void run(java.lang.String in,
                   java.lang.String out)
            throws java.io.IOException,
                   java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException

run

protected void run(java.io.File in,
                   java.io.File out)
            throws java.io.IOException,
                   java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException

run

protected void run(java.io.Reader reader,
                   java.io.Writer writer)
            throws java.io.IOException,
                   java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException

failed

protected boolean failed(fit.Fixture fixture)

read

protected java.lang.String read(java.io.Reader in)
                         throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2006-2007 Codehaus. All Rights Reserved.