Browse Source

Handle classes which are on the classpath but which cannot be loaded due to

downstream dependencies.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268566 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
5566c88038
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/main/org/apache/tools/ant/taskdefs/Available.java

+ 5
- 2
src/main/org/apache/tools/ant/taskdefs/Available.java View File

@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -170,7 +170,10 @@ public class Available extends Task {
}
return true;
} catch (ClassNotFoundException e) {
log(e.toString(), Project.MSG_VERBOSE);
log("Class not found: " + classname, Project.MSG_VERBOSE);
return false;
} catch (NoClassDefFoundError e) {
log("Class cound not be loaded: " + classname, Project.MSG_VERBOSE);
return false;
}
}


Loading…
Cancel
Save