From 49c52d18dec46483f8fc67a5c5c1f89937a1e31a Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 1 Jun 2004 13:33:10 +0000 Subject: [PATCH] JDK 1.3- git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276499 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java b/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java index f78f0e035..24faf683b 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java +++ b/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java @@ -101,7 +101,7 @@ class ProcessDestroyer implements Runnable { } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { - Throwable t = e.getCause(); + Throwable t = e.getTargetException(); if (t != null && t.getClass() == IllegalStateException.class) { // shutdown already is in progress running = true; @@ -130,7 +130,7 @@ class ProcessDestroyer implements Runnable { } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { - Throwable t = e.getCause(); + Throwable t = e.getTargetException(); if (t != null && t.getClass() == IllegalStateException.class) { // shutdown already is in progress running = true;