Browse Source

allow access to parent. PR 35436

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@796649 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
26f846b838
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      src/main/org/apache/tools/ant/AntClassLoader.java

+ 12
- 0
src/main/org/apache/tools/ant/AntClassLoader.java View File

@@ -918,6 +918,8 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {
*
* <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 {
@@ -1379,6 +1381,16 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {
project = null;
}

/**
* 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.
*


Loading…
Cancel
Save