summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/partest/scala/tools/partest/nest/PathSettings.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/partest/scala/tools/partest/nest/PathSettings.scala b/src/partest/scala/tools/partest/nest/PathSettings.scala
index bf551b1aba..fd8eb4cdfa 100644
--- a/src/partest/scala/tools/partest/nest/PathSettings.scala
+++ b/src/partest/scala/tools/partest/nest/PathSettings.scala
@@ -37,8 +37,11 @@ object PathSettings {
// Directory <root>/build/pack/lib
lazy val buildPackLibDir = Directory(buildDir / "pack" / "lib")
- lazy val scalaCheck = buildPackLibDir.files find (_.name startsWith "scalacheck") getOrElse {
- error("No scalacheck jar found in '%s'" format srcLibDir)
+ lazy val scalaCheck = {
+ (buildPackLibDir.files find (_.name startsWith "scalacheck")) orElse
+ (srcLibDir.files find (_.name startsWith "scalacheck")) getOrElse {
+ error("No scalacheck jar found in '%s' or '%s'".format(buildPackLibDir, srcLibDir))
+ }
}
}