Skip to content

Commit

Permalink
Using PrintFlags should not spawn an image-build server
Browse files Browse the repository at this point in the history
This reverts commit cb59e6d.
  • Loading branch information
olpaw committed Apr 3, 2018
1 parent 7dff45e commit b538e97
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,8 @@ private void killServer() {

@Override
protected void buildImage(LinkedHashSet<String> javaArgs, LinkedHashSet<Path> bcp, LinkedHashSet<Path> cp, LinkedHashSet<String> imageArgs, LinkedHashSet<Path> imagecp) {
if (useServer && !javaArgs.contains("-Xdebug")) {
boolean printFlags = imageArgs.stream().anyMatch(arg -> arg.contains(enablePrintFlags));
if (useServer && !printFlags && !javaArgs.contains("-Xdebug")) {
AbortBuildSignalHandler signalHandler = new AbortBuildSignalHandler();
sun.misc.Signal.handle(new sun.misc.Signal("TERM"), signalHandler);
sun.misc.Signal.handle(new sun.misc.Signal("INT"), signalHandler);
Expand Down

0 comments on commit b538e97

Please sign in to comment.