From 75b8fb72086c014dfe5967778a4344b32266ef62 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Thu, 22 Oct 2009 08:15:34 -0400 Subject: [PATCH] split build.scala.versions around whitespace, not commas --- src/main/scala/sbt/Project.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/sbt/Project.scala b/src/main/scala/sbt/Project.scala index 0f3d5b504..59e931711 100644 --- a/src/main/scala/sbt/Project.scala +++ b/src/main/scala/sbt/Project.scala @@ -249,12 +249,12 @@ trait Project extends TaskManager with Dag[Project] with BasicEnvironment /** True if crossPath should be the identity function.*/ protected def disableCrossPaths = crossScalaVersions.isEmpty - /** By default, this is the build.scala.versions property split around commas. This can be overridden directly if preferred.*/ + /** By default, this is the build.scala.versions property split around whitespace. This can be overridden directly if preferred.*/ def crossScalaVersions: Seq[String] = info.parent match { case Some(p) => p.crossScalaVersions - case None => buildScalaVersions.value.split("""\s*,\s*""").toList.reverse.removeDuplicates.reverse + case None => buildScalaVersions.value.split("""\s+""").toList.reverse.removeDuplicates.reverse } /** A `PathFinder` that determines the files watched when an action is run with a preceeding ~ when this is the current * project. This project does not need to include the watched paths for projects that this project depends on.*/