org.jbehave.core.parser
Class StoryPathFinder

java.lang.Object
  extended by org.jbehave.core.parser.StoryPathFinder

public class StoryPathFinder
extends java.lang.Object

Finds story paths from a filesystem.

Author:
Mauro Talevi

Constructor Summary
StoryPathFinder()
           
 
Method Summary
 java.util.List<java.lang.String> listStoryPaths(java.lang.String basedir, java.lang.String rootPath, java.util.List<java.lang.String> includes, java.util.List<java.lang.String> excludes)
          Lists story paths from a base directory, allowing for includes/excludes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoryPathFinder

public StoryPathFinder()
Method Detail

listStoryPaths

public java.util.List<java.lang.String> listStoryPaths(java.lang.String basedir,
                                                       java.lang.String rootPath,
                                                       java.util.List<java.lang.String> includes,
                                                       java.util.List<java.lang.String> excludes)
Lists story paths from a base directory, allowing for includes/excludes. If Java paths are found, these are normalised to Java class names.

Parameters:
basedir - the base directory path
rootPath - the root path prefixed to all paths found, or null if none
includes - the List of include patterns, or null if none
excludes - the List of exclude patterns, or null if none
Returns:
A List of paths


Copyright © 2003-2010. All Rights Reserved.