# HG changeset patch # User Omair Majid # Date 1403731587 14400 # Node ID 140f53e687551aa0df1c81014fdd86579673d430 # Parent 5c3c720c875ea365963785672e8307fbbfacb60a Fix build under OpenJDK 7 This makes things a little more brittle, but the API to do it correctly is not avialable under OpenJDK 7. diff -r 5c3c720c875e -r 140f53e68755 com.redhat.thermostat.tools.eclipse.plugin/src/com/redhat/thermostat/tools/eclipse/plugin/wizards/ExportPluginWizard.java --- a/com.redhat.thermostat.tools.eclipse.plugin/src/com/redhat/thermostat/tools/eclipse/plugin/wizards/ExportPluginWizard.java Thu Jun 05 17:50:39 2014 -0400 +++ b/com.redhat.thermostat.tools.eclipse.plugin/src/com/redhat/thermostat/tools/eclipse/plugin/wizards/ExportPluginWizard.java Wed Jun 25 17:26:27 2014 -0400 @@ -174,12 +174,7 @@ launchProcess.getStreamsProxy().getOutputStreamMonitor().addListener(consoleRedirector); launchProcess.getStreamsProxy().getErrorStreamMonitor().addListener(consoleRedirector); - boolean result = p.waitFor(1, TimeUnit.HOURS); - if (!result) { - p.destroyForcibly(); - return false; - } - + int exitValue = p.waitFor(); return (p.exitValue() == 0); } catch (InterruptedException e) {