print what is currently compiled
This commit is contained in:
@@ -40,6 +40,8 @@ abstract class ForTestCompileSomething {
|
|||||||
private File jarFile;
|
private File jarFile;
|
||||||
|
|
||||||
ForTestCompileSomething(@NotNull String jarName) {
|
ForTestCompileSomething(@NotNull String jarName) {
|
||||||
|
System.out.println("Compiling " + jarName + "...");
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
this.jarName = jarName;
|
this.jarName = jarName;
|
||||||
try {
|
try {
|
||||||
File tmpDir = JetTestUtils.tmpDir("runtimejar");
|
File tmpDir = JetTestUtils.tmpDir("runtimejar");
|
||||||
@@ -67,11 +69,17 @@ abstract class ForTestCompileSomething {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FileUtil.delete(classesDir);
|
FileUtil.delete(classesDir);
|
||||||
|
long end = System.currentTimeMillis();
|
||||||
|
System.out.println("Compiling " + jarName + " done in " + millisecondsToSecondsString(end - start) + "s");
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
error = e;
|
error = e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String millisecondsToSecondsString(long millis) {
|
||||||
|
return millis / 1000 + "." + String.format("%03d", millis % 1000);
|
||||||
|
}
|
||||||
|
|
||||||
private static void copyToJar(File root, JarOutputStream os) throws IOException {
|
private static void copyToJar(File root, JarOutputStream os) throws IOException {
|
||||||
Stack<Pair<String, File>> toCopy = new Stack<Pair<String, File>>();
|
Stack<Pair<String, File>> toCopy = new Stack<Pair<String, File>>();
|
||||||
toCopy.add(new Pair<String, File>("", root));
|
toCopy.add(new Pair<String, File>("", root));
|
||||||
|
|||||||
Reference in New Issue
Block a user