Browse Source

Made the messages for loading with direct and reverse delegation different.

Added a small message to display the source of the class ( like the
verbose:class option )

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273690 13f79535-47bb-0310-9956-ffa450edef68
master
Costin Manolache 22 years ago
parent
commit
9ba9e53780
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/org/apache/tools/ant/AntClassLoader.java

+ 4
- 2
src/main/org/apache/tools/ant/AntClassLoader.java View File

@@ -919,11 +919,11 @@ public class AntClassLoader extends ClassLoader implements BuildListener {
if (isParentFirst(classname)) {
try {
theClass = findBaseClass(classname);
log("Class " + classname + " loaded from parent loader",
log("Class " + classname + " loaded from parent loader ( parentFirst )",
Project.MSG_DEBUG);
} catch (ClassNotFoundException cnfe) {
theClass = findClass(classname);
log("Class " + classname + " loaded from ant loader",
log("Class " + classname + " loaded from ant loader ( parentFirst )",
Project.MSG_DEBUG);
}
} else {
@@ -1061,6 +1061,8 @@ public class AntClassLoader extends ClassLoader implements BuildListener {
try {
stream = getResourceStream(pathComponent, classFilename);
if (stream != null) {
log("Loaded from " + pathComponent + " " + classFilename,
Project.MSG_DEBUG );
return getClassFromStream(stream, name);
}
} catch (SecurityException se) {


Loading…
Cancel
Save