org.jbehave.ant
Class AbstractStoryTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by 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

Field Summary
 
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
 
Constructor Summary
AbstractStoryTask()
           
 
Method Summary
protected  boolean ignoreFailure()
          Indicates if failure should be ignored
 void setclassLoaderInjected(boolean classLoaderInjected)
           
 void setIgnoreFailure(boolean ignoreFailure)
           
 void setScope(String scope)
           
 void setSkip(boolean skip)
           
 void setSourceDirectory(String sourceDirectory)
           
 void setStoryClassNames(String classNamesCSV)
           
 void setStoryExcludes(String excludesCSV)
           
 void setStoryIncludes(String includesCSV)
           
 void setTestSourceDirectory(String testSourceDirectory)
           
protected  boolean skipStories()
          Indicates if stories should be skipped
protected  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".
 
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
 

Constructor Detail

AbstractStoryTask

public AbstractStoryTask()
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.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.