From dbecca155c71b3db823e8b6b9998503a4c42077d Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sat, 20 Jan 2001 10:43:34 +0000 Subject: [PATCH] Catch NoClassDefFoundErrors. These indicate that while a superclass is available on the classpath, a class it depends on is not. As this code is currently catching ClassNotFound exceptions anyway, this is not a major change. It will log a warning. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268484 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/taskdefs/optional/ejb/GenericDeploymentTool.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java index 3616cb25d..c43869079 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java @@ -572,6 +572,10 @@ public class GenericDeploymentTool implements EJBDeploymentTool { log("Could not load class " + classname + " for super class check", Project.MSG_WARN); } + catch (NoClassDefFoundError ncdfe) { + log("Could not fully load class " + classname + " for super class check", + Project.MSG_WARN); + } } //if } // while }