conor 01/08/06 02:58:36
Modified: src/main/org/apache/tools/ant AntClassLoader.java
Log:
Define backward compatability constructor
Revision Changes Path
1.33 +13 -0
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.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- AntClassLoader.java 2001/08/03 16:38:20 1.32
+++ AntClassLoader.java 2001/08/06 09:58:36 1.33
@@ -281,6 +281,19 @@
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.