sbt

class PathFinder

[source: sbt/PathFinder.scala]

sealed abstract class PathFinder
extends scala.NotNull with AnyRef
A path finder constructs a set of paths. The set is evaluated by a call to the get method. The set will be different for different calls to get if the underlying filesystem has changed.
Direct Known Subclasses:
Path

Method Summary
def ## : PathFinder
Makes the paths selected by this finder into base directories.
def * (filter : FileFilter) : PathFinder
Constructs a new finder that selects all paths with a name that matches filter and are immediate children of paths selected by this finder.
def ** (filter : FileFilter) : PathFinder
Constructs a new finder that selects all paths with a name that matches filter and are descendents of paths selected by this finder.
def *** : PathFinder
def +++ (paths : PathFinder) : PathFinder
The union of the paths found by this PathFinder with the paths found by 'paths'.
def --- (excludePaths : PathFinder) : PathFinder
Excludes all paths from excludePaths from the paths selected by this PathFinder.
def / (literal : java.lang.String) : PathFinder
Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.
final def \ (literal : java.lang.String) : PathFinder
Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.
final def absString : java.lang.String
Constructs a string by evaluating this finder, converting the resulting Paths to absolute path strings, and joining them with the platform path separator.
def descendentsExcept (include : FileFilter, intermediateExclude : FileFilter) : PathFinder
Selects all descendent paths with a name that matches include and do not have an intermediate path with a name that matches intermediateExclude. Typical usage is: descendentsExcept("*.jar", ".svn")
def distinct : PathFinder
Create a PathFinder from this one where each path has a unique name. A single path is arbitrarily selected from the set of paths with the same name.
final def filter (f : (Path) => Boolean) : PathFinder
Only keeps paths for which `f` returns true. It is non-strict, so it is not evaluated until the returned finder is evaluated.
final def flatMap (f : (Path) => PathFinder) : PathFinder
final def get : scala.collection.Set[Path]
Evaluates this finder. The set returned by this method will reflect the underlying filesystem at the time of calling. If the filesystem changes, two calls to this method might be different.
final def getFiles : scala.collection.immutable.Set[java.io.File]
Evaluates this finder and converts the results to a `Set` of `File`s.
final def getPaths : scala.collection.immutable.Set[java.lang.String]
Evaluates this finder and converts the results to a `Set` of absolute path strings.
final def getRelativePaths : scala.collection.immutable.Set[java.lang.String]
Evaluates this finder and converts the results to a `Set` of relative path strings.
final def getURLs : scala.Array[java.net.URL]
Evaluates this finder and converts the results to an `Array` of `URL`s..
final def relativeString : java.lang.String
Constructs a string by evaluating this finder, converting the resulting Paths to relative path strings, and joining them with the platform path separator.
final def strictMap [T](f : (Path) => T) : scala.collection.immutable.Set[T]
override def toString : java.lang.String
Constructs a debugging string for this finder by evaluating it and separating paths by newlines.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def +++(paths : PathFinder) : PathFinder
The union of the paths found by this PathFinder with the paths found by 'paths'.

def ---(excludePaths : PathFinder) : PathFinder
Excludes all paths from excludePaths from the paths selected by this PathFinder.

def **(filter : FileFilter) : PathFinder
Constructs a new finder that selects all paths with a name that matches filter and are descendents of paths selected by this finder.

def *** : PathFinder

def *(filter : FileFilter) : PathFinder
Constructs a new finder that selects all paths with a name that matches filter and are immediate children of paths selected by this finder.

def /(literal : java.lang.String) : PathFinder
Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

final def \(literal : java.lang.String) : PathFinder
Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

def ## : PathFinder
Makes the paths selected by this finder into base directories.
See Also
Path.##

def descendentsExcept(include : FileFilter, intermediateExclude : FileFilter) : PathFinder
Selects all descendent paths with a name that matches include and do not have an intermediate path with a name that matches intermediateExclude. Typical usage is: descendentsExcept("*.jar", ".svn")

final def get : scala.collection.Set[Path]
Evaluates this finder. The set returned by this method will reflect the underlying filesystem at the time of calling. If the filesystem changes, two calls to this method might be different.

final def filter(f : (Path) => Boolean) : PathFinder
Only keeps paths for which `f` returns true. It is non-strict, so it is not evaluated until the returned finder is evaluated.

final def flatMap(f : (Path) => PathFinder) : PathFinder

final def getURLs : scala.Array[java.net.URL]
Evaluates this finder and converts the results to an `Array` of `URL`s..

final def getFiles : scala.collection.immutable.Set[java.io.File]
Evaluates this finder and converts the results to a `Set` of `File`s.

final def getPaths : scala.collection.immutable.Set[java.lang.String]
Evaluates this finder and converts the results to a `Set` of absolute path strings.

final def getRelativePaths : scala.collection.immutable.Set[java.lang.String]
Evaluates this finder and converts the results to a `Set` of relative path strings.

final def strictMap[T](f : (Path) => T) : scala.collection.immutable.Set[T]

def distinct : PathFinder
Create a PathFinder from this one where each path has a unique name. A single path is arbitrarily selected from the set of paths with the same name.

final def absString : java.lang.String
Constructs a string by evaluating this finder, converting the resulting Paths to absolute path strings, and joining them with the platform path separator.

final def relativeString : java.lang.String
Constructs a string by evaluating this finder, converting the resulting Paths to relative path strings, and joining them with the platform path separator.

override def toString : java.lang.String
Constructs a debugging string for this finder by evaluating it and separating paths by newlines.