Skip to content

Commit a458cc5

Browse files
committed
Merge pull request #97 from Kwestor/fix/windows-path-separator
Correct path separator for windows machines
2 parents d5c07fa + 2864d13 commit a458cc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scalac-scoverage-plugin/src/test/scala/scoverage/ScoverageCompiler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object ScoverageCompiler {
2121
s.Xprint.value = List("all")
2222
s.Yrangepos.value = true
2323
s.Yposdebug.value = true
24-
s.classpath.value = classPath.mkString(":")
24+
s.classpath.value = classPath.mkString(File.pathSeparator)
2525
s
2626
}
2727

@@ -66,7 +66,7 @@ class ScoverageCompiler(settings: scala.tools.nsc.Settings, reporter: scala.tool
6666
extends scala.tools.nsc.Global(settings, reporter) {
6767

6868
def addToClassPath(groupId: String, artifactId: String, version: String): Unit = {
69-
settings.classpath.value = settings.classpath.value + ":" + ScoverageCompiler
69+
settings.classpath.value = settings.classpath.value + File.pathSeparator + ScoverageCompiler
7070
.findIvyJar(groupId, artifactId, version)
7171
.getAbsolutePath
7272
}

0 commit comments

Comments
 (0)