ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r796649 - /ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
Date Wed, 22 Jul 2009 09:51:17 GMT
Author: bodewig
Date: Wed Jul 22 09:51:16 2009
New Revision: 796649

URL: http://svn.apache.org/viewvc?rev=796649&view=rev
Log:
allow access to parent.  PR 35436

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java?rev=796649&r1=796648&r2=796649&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java Wed Jul 22 09:51:16 2009
@@ -918,6 +918,8 @@
      *
      * <p>Would override getResources if that wasn't final in Java
      * 1.4.</p>
+     *
+     * @since Ant 1.8.0
      */
     public Enumeration/*<URL>*/ getNamedResources(String name)
         throws IOException {
@@ -1380,6 +1382,16 @@
     }
 
     /**
+     * Gets the parent as has been specified in the constructor or via
+     * setParent.
+     *
+     * @since Ant 1.8.0
+     */
+    public ClassLoader getConfiguredParent() {
+        return parent;
+    }
+
+    /**
      * Empty implementation to satisfy the BuildListener interface.
      *
      * @param event the buildStarted event



Mime
View raw message