|
Simple Build Tool 0.7.7 API
|
|
sbt/PathFinder.scala]
sealed abstract
class
PathFinder
extends scala.NotNull with AnyRefget
method. The set will be different for different calls to get if the underlying filesystem
has changed.| 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
PathFinder with the paths found by 'paths'.
def
---(excludePaths : PathFinder) : PathFinder
excludePaths from the paths selected by this PathFinder.
def
**(filter : FileFilter) : PathFinder
filter and are
descendents of paths selected by this finder.
def
*** : PathFinder
def
*(filter : FileFilter) : PathFinder
filter and are
immediate children of paths selected by this finder.
def
/(literal : java.lang.String) : PathFinder
literal that are immediate children
of paths selected by this finder.final
def
\(literal : java.lang.String) : PathFinder
literal that are immediate children
of paths selected by this finder.
def
## : PathFinder
def
descendentsExcept(include : FileFilter, intermediateExclude : FileFilter) : PathFinder
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]
final
def
filter(f : (Path) => Boolean) : PathFinder
final
def
flatMap(f : (Path) => PathFinder) : PathFinder
final
def
getURLs : scala.Array[java.net.URL]
final
def
getFiles : scala.collection.immutable.Set[java.io.File]
final
def
getPaths : scala.collection.immutable.Set[java.lang.String]
final
def
getRelativePaths : scala.collection.immutable.Set[java.lang.String]
final
def
strictMap[T](f : (Path) => T) : scala.collection.immutable.Set[T]
def
distinct : PathFinder
final
def
absString : java.lang.String
final
def
relativeString : java.lang.String
override
def
toString : java.lang.String
|
Simple Build Tool 0.7.7 API
|
|