Skip to content

Commit

Permalink
Fix code for Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
big-andy-coates committed Nov 22, 2023
1 parent 0f073b5 commit 5956f18
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.lang.management.RuntimeMXBean;
import java.nio.file.Path;
import java.util.Optional;
import java.util.regex.Pattern;

/** Util class for capturing code coverage specific JVM arguments. */
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
Expand Down Expand Up @@ -70,8 +69,7 @@ static Optional<String> codeCoverageCmdLineArg(
found.map(
arg ->
arg.replaceAll(
"([:=])build"
+ Pattern.quote(File.separator),
"([:=])build[/\\\\]",
"$1"
+ dir.toAbsolutePath()
+ File.separator)))
Expand Down

0 comments on commit 5956f18

Please sign in to comment.