mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8144009: ToolBox should have a cleanDirectory method
Added cleanDirectory method to ToolBox. Reviewed-by: jjg
This commit is contained in:
parent
68126c8ee9
commit
ea92f6bf06
14 changed files with 36 additions and 71 deletions
|
@ -47,9 +47,7 @@ public class CompileExcludingDependency extends SJavacTester {
|
|||
|
||||
// Verify that excluding classes from compilation but not from linking works
|
||||
void test() throws Exception {
|
||||
clean(TEST_ROOT);
|
||||
Files.createDirectories(BIN);
|
||||
clean(GENSRC,BIN);
|
||||
Map<String,Long> previous_bin_state = collectState(BIN);
|
||||
ToolBox tb = new ToolBox();
|
||||
tb.writeFile(GENSRC.resolve("alfa/omega/A.java"),
|
||||
|
@ -69,6 +67,5 @@ public class CompileExcludingDependency extends SJavacTester {
|
|||
verifyThatFilesHaveBeenAdded(previous_bin_state, new_bin_state,
|
||||
BIN + "/alfa/omega/A.class",
|
||||
BIN + "/javac_state");
|
||||
clean(GENSRC, BIN);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue