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:
- 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 |
|
Method Summary |
protected boolean |
batch()
Indicates if stories are batched |
protected org.jbehave.core.StoryClassLoader |
createStoryClassLoader()
Creates the Story ClassLoader with the classpath element of the
selected scope |
protected boolean |
ignoreFailure()
Indicates if failure should be ignored |
protected org.jbehave.core.StoryEmbedder |
newStoryEmbedder()
|
void |
setBatch(boolean batch)
|
void |
setClassLoaderInjected(boolean classLoaderInjected)
|
void |
setIgnoreFailure(boolean ignoreFailure)
|
void |
setScope(java.lang.String scope)
|
void |
setSkip(boolean skip)
|
void |
setSourceDirectory(java.lang.String sourceDirectory)
|
void |
setStoryClassNames(java.lang.String classNamesCSV)
|
void |
setStoryEmbedder(java.lang.String storyEmbedder)
|
void |
setStoryExcludes(java.lang.String excludesCSV)
|
void |
setStoryIncludes(java.lang.String includesCSV)
|
void |
setTestSourceDirectory(java.lang.String testSourceDirectory)
|
protected boolean |
skipStories()
Indicates if stories should be skipped |
protected java.util.List<org.jbehave.core.RunnableStory> |
stories()
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". |
protected java.util.List<java.lang.String> |
storyPaths()
|
| 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
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
batch
protected boolean batch()
- Indicates if stories are batched
- Returns:
- A boolean flag,
true if stories are batched
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)
setSkip
public void setSkip(boolean skip)
setIgnoreFailure
public void setIgnoreFailure(boolean ignoreFailure)
setBatch
public void setBatch(boolean batch)
setStoryEmbedder
public void setStoryEmbedder(java.lang.String storyEmbedder)
Copyright © 2003-2010. All Rights Reserved.