org.codehaus.mojo.fit
Class FitRunnerMojo

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

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-2010 Codehaus. All Rights Reserved.