ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant AntClassLoader.java
Date Tue, 24 Dec 2002 01:31:56 GMT
costin      2002/12/23 17:31:56

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
  Log:
  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 )
  
  Revision  Changes    Path
  1.63      +4 -2      jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java
  
  Index: AntClassLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- AntClassLoader.java	4 Dec 2002 16:42:26 -0000	1.62
  +++ AntClassLoader.java	24 Dec 2002 01:31:56 -0000	1.63
  @@ -919,11 +919,11 @@
           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 @@
                   try {
                       stream = getResourceStream(pathComponent, classFilename);
                       if (stream != null) {
  +                        log("Loaded from " + pathComponent + " " + classFilename,
  +                                Project.MSG_DEBUG );
                           return getClassFromStream(stream, name);
                       }
                   } catch (SecurityException se) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message