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:
- Cloneable
- Direct Known Subclasses:
- StepdocTask, 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 |
AbstractStoryTask
public AbstractStoryTask()
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.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 Storys
- Throws:
org.apache.tools.ant.BuildException
setSourceDirectory
public void setSourceDirectory(String sourceDirectory)
setTestSourceDirectory
public void setTestSourceDirectory(String testSourceDirectory)
setScope
public void setScope(String scope)
setStoryClassNames
public void setStoryClassNames(String classNamesCSV)
setStoryIncludes
public void setStoryIncludes(String includesCSV)
setStoryExcludes
public void setStoryExcludes(String excludesCSV)
setclassLoaderInjected
public void setclassLoaderInjected(boolean classLoaderInjected)
setSkip
public void setSkip(boolean skip)
setIgnoreFailure
public void setIgnoreFailure(boolean ignoreFailure)
Copyright © 2003-2010. All Rights Reserved.