diff options
author | Michał Pociecha <michal.pociecha@gmail.com> | 2016-07-22 12:11:55 +0200 |
---|---|---|
committer | Michał Pociecha <michal.pociecha@gmail.com> | 2016-07-22 12:13:23 +0200 |
commit | 3205091c5530b41072dc0624a3362809bdadf6ee (patch) | |
tree | cb6572a342741ba3e521888b06a92773d1cf4448 /project/plugins.sbt | |
parent | 6b99dfe746cbb76828db495b58e55db2a0265ee2 (diff) | |
download | scala-3205091c5530b41072dc0624a3362809bdadf6ee.tar.gz scala-3205091c5530b41072dc0624a3362809bdadf6ee.tar.bz2 scala-3205091c5530b41072dc0624a3362809bdadf6ee.zip |
Improve sbt-based IntelliJ integration in case of Windows
Use File.pathSeparator when processing classpath instead of just :
to don't end up with classpath like "C:\sth\a.jar:C:\sth\b.jar" what
was causing problems after split(":").
Display questions first and then wait for user input. I tested on 3
computes and without flush the printed questions were always displayed
just after user replied - never before.
Diffstat (limited to 'project/plugins.sbt')
-rw-r--r-- | project/plugins.sbt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project/plugins.sbt b/project/plugins.sbt index 98ec8f16ed..0a5b8f3dd4 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -11,9 +11,9 @@ enablePlugins(BuildInfoPlugin) // configure sbt-buildinfo to send the externalDependencyClasspath to the main build, which allows using it for the IntelliJ project config -lazy val buildClasspath = taskKey[String]("Colon-separated list of entries on the sbt build classpath.") +lazy val buildClasspath = taskKey[String]("Colon-separated (or semicolon-separated in case of Windows) list of entries on the sbt build classpath.") -buildClasspath := (externalDependencyClasspath in Compile).value.map(_.data).mkString(":") +buildClasspath := (externalDependencyClasspath in Compile).value.map(_.data).mkString(java.io.File.pathSeparator) buildInfoKeys := Seq[BuildInfoKey](buildClasspath) |