Browse Source

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
master
Conor MacNeill 24 years ago
parent
commit
dbecca155c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java

+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java View File

@@ -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
}


Loading…
Cancel
Save