Skip to content

Commit 9413c8a

Browse files
committed
Fix directory cleaning
1 parent 0f400b3 commit 9413c8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/langtools/jdk/javadoc/taglet/JdkTaglets.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public final class JdkTaglets {
3535

3636
/// Build a taglet and return its path for `-tagletpath`.
3737
public static Path build(ToolBox tb, Path base, String... tagletFiles) throws IOException {
38-
Path tagletOutDir = base.resolve("taglet");
39-
Files.deleteIfExists(tagletOutDir);
38+
Path tagletOutDir = base.resolve("tagletClasses");
4039
Files.createDirectories(tagletOutDir);
40+
tb.cleanDirectory(tagletOutDir);
4141
Path tagletRoot = tb.findFromTestRoot("../../make/jdk/src/classes/build/tools/taglet");
4242

4343
new JavacTask(tb)

0 commit comments

Comments
 (0)