org.jbehave.mojo
Class AbstractStoryMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jbehave.mojo.AbstractStoryMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
StepdocMojo, StoryRunnerMojo

public abstract class AbstractStoryMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract mojo that holds all the configuration parameters to specify and load stories.

Author:
Mauro Talevi

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractStoryMojo()
           
 
Method Summary
protected  boolean ignoreFailure()
          Indicates if failure should be ignored
protected  boolean skipStories()
          Indicates if stories should be skipped
protected  List<org.jbehave.core.RunnableStory> stories()
          Returns the list of runnable stories, whose class names are either specified via the parameter "storyClassNames" (which takes precedence) or found using the parameters "storyIncludes" and "storyExcludes".
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Constructor Detail

AbstractStoryMojo

public AbstractStoryMojo()
Method Detail

ignoreFailure

protected boolean ignoreFailure()
Indicates if failure should be ignored

Returns:
A boolean flag, true if failure should be ignored

skipStories

protected boolean skipStories()
Indicates if stories should be skipped

Returns:
A boolean flag, true if stories are skipped

stories

protected List<org.jbehave.core.RunnableStory> stories()
                                                throws org.apache.maven.plugin.MojoExecutionException
Returns the list of runnable stories, whose class names are either specified via the parameter "storyClassNames" (which takes precedence) or found using the parameters "storyIncludes" and "storyExcludes".

Returns:
A List of RunnableStory
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2003-2010. All Rights Reserved.