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  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 setScenarioClassNames(java.lang.String scenarioClassNamesCSV)
           
 void setScenarioExcludes(java.lang.String scenarioExcludesCSV)
           
 void setScenarioIncludes(java.lang.String scenarioIncludesCSV)
           
 void setScope(java.lang.String scope)
           
 void setSourceDirectory(java.lang.String sourceDirectory)
           
 void setTestSourceDirectory(java.lang.String testSourceDirectory)
           
 
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

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)


Copyright © 2003-2009. All Rights Reserved.