Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 28, 2024
1 parent e2f5a43 commit 21c24ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static List<String> compile(Path temp, Writer out, Writer err) throws Ex
}

private static void junit(Path temp) throws Exception {
var projectDir = Path.of("../documentation");
var projectDir = Path.of("../documentation").toAbsolutePath();

var result = ProcessStarters.java() //
.workingDir(projectDir) //
Expand All @@ -133,8 +133,7 @@ private static void junit(Path temp) throws Exception {
temp.resolve("lib").toString() //
)) //
.addArguments("--add-modules", "documentation") //
.addArguments("--patch-module",
"documentation=" + projectDir.resolve("src/test/resources").toAbsolutePath()) //
.addArguments("--patch-module", "documentation=" + projectDir.resolve("src/test/resources")) //
.addArguments("--module", "org.junit.platform.console") //
.addArguments("execute") //
.addArguments("--scan-modules") //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ToolProviderTests {
@BeforeAll
static void prepareLocalLibraryDirectoryWithJUnitPlatformModules() {
try {
var lib = Files.createDirectories(ToolProviderTests.lib);
Files.createDirectories(lib);
try (var directoryStream = Files.newDirectoryStream(lib, "*.jar")) {
for (Path jarFile : directoryStream) {
Files.delete(jarFile);
Expand Down

0 comments on commit 21c24ae

Please sign in to comment.