org.jbehave.ant
Class AbstractScenarioTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jbehave.ant.AbstractScenarioTask
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ScenarioRunnerTask, StepdocTask

public abstract class AbstractScenarioTask
extends org.apache.tools.ant.Task

Abstract task that holds all the configuration parameters to specify and load scenarios.

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
AbstractScenarioTask()
           
 
Method Summary
protected  boolean ignoreFailure()
          Indicates if failure should be ignored
protected  java.util.List<org.jbehave.scenario.RunnableScenario> scenarios()
          Returns the list of scenario instances, whose class names are either specified via the parameter "scenarioClassNames" (which takes precedence) or found using the parameters "scenarioIncludes" and "scenarioExcludes".
 void setclassLoaderInjected(boolean classLoaderInjected)
           
 void setIgnoreFailure(boolean ignoreFailure)
           
 void setScenarioClassNames(java.lang.String scenarioClassNamesCSV)
           
 void setScenarioExcludes(java.lang.String scenarioExcludesCSV)
           
 void setScenarioIncludes(java.lang.String scenarioIncludesCSV)
           
 void setScope(java.lang.String scope)
           
 void setSkip(boolean skip)
           
 void setSourceDirectory(java.lang.String sourceDirectory)
           
 void setTestSourceDirectory(java.lang.String testSourceDirectory)
           
protected  boolean skipScenarios()
          Indicates if scenarios should be skipped
 
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

AbstractScenarioTask

public AbstractScenarioTask()
Method Detail

ignoreFailure

protected boolean ignoreFailure()
Indicates if failure should be ignored

Returns:
A boolean flag, true if failure should be ignored

skipScenarios

protected boolean skipScenarios()
Indicates if scenarios should be skipped

Returns:
A boolean flag, true if scenarios are skipped

scenarios

protected java.util.List<org.jbehave.scenario.RunnableScenario> scenarios()
                                                                   throws org.apache.tools.ant.BuildException
Returns the list of scenario instances, whose class names are either specified via the parameter "scenarioClassNames" (which takes precedence) or found using the parameters "scenarioIncludes" and "scenarioExcludes".

Returns:
A List of Scenarios
Throws:
org.apache.tools.ant.BuildException

setSourceDirectory

public void setSourceDirectory(java.lang.String sourceDirectory)

setTestSourceDirectory

public void setTestSourceDirectory(java.lang.String testSourceDirectory)

setScope

public void setScope(java.lang.String scope)

setScenarioClassNames

public void setScenarioClassNames(java.lang.String scenarioClassNamesCSV)

setScenarioIncludes

public void setScenarioIncludes(java.lang.String scenarioIncludesCSV)

setScenarioExcludes

public void setScenarioExcludes(java.lang.String scenarioExcludesCSV)

setclassLoaderInjected

public void setclassLoaderInjected(boolean classLoaderInjected)

setSkip

public void setSkip(boolean skip)

setIgnoreFailure

public void setIgnoreFailure(boolean ignoreFailure)


Copyright © 2003-2010. All Rights Reserved.