Skip to content

Commit

Permalink
ptree
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Apr 13, 2023
1 parent 39cd2fa commit 0b548ae
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ public void main() throws Exception {
ExecutorService executor = null;
AtomicReference<BuildResult> buildResult = new AtomicReference<>();
try {
System.err.println();
System.err.println();
System.err.println();
dumpProcesses();
System.err.println();
System.err.println();
System.err.println();

executor = Executors.newSingleThreadExecutor();
quarkusDev = executor.submit(() -> {
try {
Expand Down Expand Up @@ -74,6 +82,14 @@ public void main() throws Exception {
}
throw e;
} finally {
System.err.println();
System.err.println();
System.err.println();
dumpProcesses();
System.err.println();
System.err.println();
System.err.println();

if (quarkusDev != null) {
quarkusDev.cancel(true);
}
Expand All @@ -89,6 +105,13 @@ public void main() throws Exception {
if (projectDir != null && projectDir.isDirectory()) {
FileUtils.deleteQuietly(projectDir);
}
System.err.println();
System.err.println();
System.err.println();
dumpProcesses();
System.err.println();
System.err.println();
System.err.println();
}
}

Expand Down

0 comments on commit 0b548ae

Please sign in to comment.