changeset 144:140f53e68755

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.
author Omair Majid <omajid@redhat.com>
date Wed, 25 Jun 2014 17:26:27 -0400
parents 5c3c720c875e
children 0e2970e18eb6
files com.redhat.thermostat.tools.eclipse.plugin/src/com/redhat/thermostat/tools/eclipse/plugin/wizards/ExportPluginWizard.java
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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) {