Browse Source

Define backward compatability constructor

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269470 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
5cf91961ce
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      src/main/org/apache/tools/ant/AntClassLoader.java

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

@@ -281,6 +281,19 @@ public class AntClassLoader extends ClassLoader implements BuildListener {
addSystemPackageRoot("javax");
}


/**
* Create a classloader for the given project using the classpath given.
*
* @param project the project to which this classloader is to belong.
* @param classpath the classpath to use to load the classes.
* @param parentFirst if true indicates that the parent classloader should be consulted
* before trying to load the a class through this loader.
*/
public AntClassLoader(Project project, Path classpath, boolean parentFirst) {
this(null, project, classpath, parentFirst);
}

/**
* Create an empty class loader. The classloader should be configured with path elements
* to specify where the loader is to look for classes.


Loading…
Cancel
Save