getProject().addReference(loaderName, acl);
if (name == null) {
// This allows the core loader to load optional tasks
// without delegating
acl.addLoaderPackageRoot("org.apache.tools.ant.taskdefs.optional");
getProject().setCoreLoader(acl);
}
}
if (existingLoader && classpath != null) {