mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-23 16:55:09 +00:00
8160213: tools/pack200/Utils.java should clean up javac*.tmp files
Reviewed-by: darcy
This commit is contained in:
parent
905cdfdf66
commit
309d9ecebc
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -60,6 +60,7 @@ public class MultiRelease {
|
||||
} else {
|
||||
System.out.println("All tests(" + pass + ") passes");
|
||||
}
|
||||
Utils.cleanup();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@ -94,7 +94,7 @@ class Utils {
|
||||
}
|
||||
File srcDir = new File(getVerifierDir(), "src");
|
||||
List<File> javaFileList = findFiles(srcDir, createFilter(JAVA_FILE_EXT));
|
||||
File tmpFile = File.createTempFile("javac", ".tmp");
|
||||
File tmpFile = File.createTempFile("javac", ".tmp", new File("."));
|
||||
XCLASSES.mkdirs();
|
||||
FileOutputStream fos = null;
|
||||
PrintStream ps = null;
|
||||
@ -208,6 +208,10 @@ class Utils {
|
||||
Utils.createFilter(".idx")));
|
||||
toDelete.addAll(Utils.findFiles(new File("."),
|
||||
Utils.createFilter(".gidx")));
|
||||
toDelete.addAll(Utils.findFiles(new File("."),
|
||||
Utils.createFilter(".tmp")));
|
||||
toDelete.addAll(Utils.findFiles(new File("."),
|
||||
Utils.createFilter(".class")));
|
||||
for (File f : toDelete) {
|
||||
f.delete();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user