ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r454220 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/AntClassLoaderDelegationTest.java
Date Sun, 08 Oct 2006 21:54:35 GMT
Author: peterreilly
Date: Sun Oct  8 14:54:34 2006
New Revision: 454220

URL: http://svn.apache.org/viewvc?view=rev&rev=454220
Log:
some printfs to help track down gump fail

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/AntClassLoaderDelegationTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/AntClassLoaderDelegationTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/AntClassLoaderDelegationTest.java?view=diff&rev=454220&r1=454219&r2=454220
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/AntClassLoaderDelegationTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/AntClassLoaderDelegationTest.java
Sun Oct  8 14:54:34 2006
@@ -64,6 +64,23 @@
         Path path = new Path(p, buildTestcases);
         // A special parent loader which is not the system class loader:
         ClassLoader parent = new ParentLoader();
+        // --- SOME PRINTF's to figure out gump failure
+        System.out.println("ParentLoader(): " + enum2List(parent.getResources(TEST_RESOURCE)));
+        ClassLoader loader = AntClassLoaderDelegationTest.class.getClassLoader();
+        System.out.println("AntClassLoaderDelegationTest");
+        while (loader != null) {
+            System.out.println(" " + loader.getClass() + ">>> " + enum2List(loader.getResources(TEST_RESOURCE)));
+            loader = loader.getParent();
+        }
+
+        System.out.println("Project");
+        loader = Project.class.getClassLoader();
+        while (loader != null) {
+            System.out.println(" " + loader.getClass() + ">>> " + enum2List(loader.getResources(TEST_RESOURCE)));
+            loader = loader.getParent();
+        }
+            
+                               
         // An AntClassLoader which is supposed to delegate to the parent and then to the
disk path:
         ClassLoader acl = new AntClassLoader(parent, p, path, true);
         // The intended result URLs:



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


Mime
View raw message