Skip to content

Commit

Permalink
Fix failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkarwasz committed Sep 7, 2023
1 parent 8be58e5 commit f8fcc46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private Path createLoggingPath(final ExtensionContext context, final CleanupMode
final String baseDir = System.getProperty("basedir");
final Path basePath = (baseDir != null ? Paths.get(baseDir, "target") : Paths.get(".")).resolve("logs");
final Class<?> clazz = context.getRequiredTestClass();
final String dir = clazz.getName().replaceAll("[.$]", File.separator);
final String dir = clazz.getName().replaceAll("[.$]", File.separatorChar == '\\' ? "\\\\" : File.separator);
final Path loggingPath = basePath.resolve(dir);
Files.createDirectories(loggingPath);
props.setProperty(TestProperties.LOGGING_PATH, loggingPath.toString());
Expand Down

0 comments on commit f8fcc46

Please sign in to comment.