org.jbehave.ant
Class AbstractStoryTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jbehave.ant.AbstractStoryTask
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- ReportRendererTask, StepdocTask, StoryPathRunnerTask, StoryRunnerTask
public abstract class AbstractStoryTask
- extends org.apache.tools.ant.Task
Abstract task that holds all the configuration parameters to specify and load
stories.
- Author:
- Mauro Talevi
Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStoryTask
public AbstractStoryTask()
createStoryClassLoader
protected org.jbehave.core.StoryClassLoader createStoryClassLoader()
throws java.net.MalformedURLException
- Creates the Story ClassLoader with the classpath element of the
selected scope
- Returns:
- A StoryClassLoader
- Throws:
java.net.MalformedURLException
runnerMonitor
protected AbstractStoryTask.AntRunnerMonitor runnerMonitor()
runnerMode
protected org.jbehave.core.StoryRunnerMode runnerMode()
storyPaths
protected java.util.List<java.lang.String> storyPaths()
stories
protected java.util.List<org.jbehave.core.RunnableStory> stories()
throws org.apache.tools.ant.BuildException
- Returns the list of story instances, 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 RunnableStories
- Throws:
org.apache.tools.ant.BuildException
newStoryEmbedder
protected org.jbehave.core.StoryEmbedder newStoryEmbedder()
setSourceDirectory
public void setSourceDirectory(java.lang.String sourceDirectory)
setTestSourceDirectory
public void setTestSourceDirectory(java.lang.String testSourceDirectory)
setScope
public void setScope(java.lang.String scope)
setStoryClassNames
public void setStoryClassNames(java.lang.String classNamesCSV)
setStoryIncludes
public void setStoryIncludes(java.lang.String includesCSV)
setStoryExcludes
public void setStoryExcludes(java.lang.String excludesCSV)
setClassLoaderInjected
public void setClassLoaderInjected(boolean classLoaderInjected)
setBatch
public void setBatch(boolean batch)
setSkip
public void setSkip(boolean skip)
setIgnoreFailureInStories
public void setIgnoreFailureInStories(boolean ignoreFailureInStories)
setIgnoreFailureInReports
public void setIgnoreFailureInReports(boolean ignoreFailureInReports)
setRenderReportsAfterStories
public void setRenderReportsAfterStories(boolean renderReportsAfterStories)
setStoryEmbedder
public void setStoryEmbedder(java.lang.String storyEmbedder)
Copyright © 2003-2010. All Rights Reserved.