Delete the test directory so that we can run "mvn install" without cleaning

This commit is contained in:
Guillaume Nodet
2020-10-05 12:32:41 +02:00
parent 8b90534179
commit 2f27012fd2

View File

@@ -144,6 +144,7 @@ public class MvndTestExtension implements BeforeAllCallback, BeforeEachCallback,
throw new IllegalStateException("rawProjectDir of @MvndTest must be set");
}
final Path testDir = Paths.get("target/mvnd-tests/" + className).toAbsolutePath();
deleteDir(testDir);
Files.createDirectories(testDir);
final Path testExecutionDir;
if (TEMP_EXTERNAL.equals(rawProjectDir)) {