fix lazyPathFinder to drop non-existing files

This commit is contained in:
Mark Harrah 2011-02-10 08:14:24 -05:00
parent 3de34c6569
commit 0ed1e8e894
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ object Path extends PathExtra
def lazyPathFinder(paths: => Traversable[Path]): PathFinder =
new PathFinder
{
private[sbt] def addTo(pathSet: mutable.Set[Path]) = pathSet ++= paths
private[sbt] def addTo(pathSet: mutable.Set[Path]) = paths.foreach(_.addTo(pathSet))
}
def finder(files: => Traversable[File]): PathFinder = lazyPathFinder { fromFiles(files) }