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:
ReportRendererMojo, StepdocMojo, StoryPathRunnerMojo, 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

Nested Class Summary
protected  class AbstractStoryMojo.MavenRunnerMonitor
           
 
Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractStoryMojo()
           
 
Method Summary
protected  org.jbehave.core.StoryClassLoader createStoryClassLoader()
          Creates the StoryClassLoader with the classpath element of the selected scope
protected  org.jbehave.core.StoryEmbedder newStoryEmbedder()
           
protected  org.jbehave.core.StoryRunnerMode runnerMode()
           
protected  AbstractStoryMojo.MavenRunnerMonitor runnerMonitor()
           
protected  java.util.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".
protected  java.util.List<java.lang.String> storyPaths()
           
 
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

createStoryClassLoader

protected org.jbehave.core.StoryClassLoader createStoryClassLoader()
                                                            throws java.net.MalformedURLException
Creates the StoryClassLoader with the classpath element of the selected scope

Returns:
A StoryClassLoader
Throws:
java.net.MalformedURLException

storyPaths

protected java.util.List<java.lang.String> storyPaths()

stories

protected java.util.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

newStoryEmbedder

protected org.jbehave.core.StoryEmbedder newStoryEmbedder()

runnerMonitor

protected AbstractStoryMojo.MavenRunnerMonitor runnerMonitor()

runnerMode

protected org.jbehave.core.StoryRunnerMode runnerMode()


Copyright © 2003-2010. All Rights Reserved.