Skip to content

Commit

Permalink
Ensure the data dir uses platform specific path separators
Browse files Browse the repository at this point in the history
  • Loading branch information
c00ler committed Feb 18, 2025
1 parent cec59ba commit 429233f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/scoverage/ScoverageSbtPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ object ScoverageSbtPlugin extends AutoPlugin {
s"-Xplugin:${pluginPaths.mkString(java.io.File.pathSeparator)}"
),
Some(
s"-P:scoverage:dataDir:${coverageDataDir.value.getAbsolutePath}/scoverage-data"
s"-P:scoverage:dataDir:${new java.io.File(coverageDataDir.value, "scoverage-data").getAbsolutePath}"
),
Some(
s"-P:scoverage:sourceRoot:${coverageSourceRoot.value.getAbsolutePath}"
Expand All @@ -191,7 +191,7 @@ object ScoverageSbtPlugin extends AutoPlugin {
) {
Seq(
Some(
s"-coverage-out:${coverageDataDir.value.getAbsolutePath()}/scoverage-data"
s"-coverage-out:${new java.io.File(coverageDataDir.value, "scoverage-data").getAbsolutePath}"
),
excludedPackages
.collect {
Expand Down

0 comments on commit 429233f

Please sign in to comment.