We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e99b1d5 + 83bb9db commit 598955bCopy full SHA for 598955b
src/partest/scala/tools/partest/nest/PathSettings.scala
@@ -28,7 +28,7 @@ object PathSettings {
28
private def cwd = Directory.Current getOrElse sys.error("user.dir property not set")
29
private def isPartestDir(d: Directory) = (d.name == "test") && (d / testSourcePath isDirectory)
30
private def findJar(name: String, ds: Directory*): Either[String, File] =
31
- ds.toStream flatMap (_.files) filter (_ hasExtension "jar") find ( _.name startsWith name ) map (Right(_)) getOrElse
+ ds.iterator flatMap (_.files) filter (_ hasExtension "jar") find ( _.name startsWith name ) map (Right(_)) getOrElse
32
Left(s"'${name}.jar' not found in '${ds map (_.path) mkString ", "}'.")
33
34
// Directory <root>/test
0 commit comments