use of org.codehaus.groovy.tools.LoaderConfiguration in project groovy-core by groovy.
the class RootLoaderRef method makeRoot.
private RootLoader makeRoot() {
String[] list = taskClasspath.list();
LoaderConfiguration lc = new LoaderConfiguration();
for (int i = 0; i < list.length; i++) {
if (list[i].matches(".*ant-[^/]*jar$")) {
continue;
}
if (list[i].matches(".*commons-logging-[^/]*jar$")) {
continue;
}
if (list[i].matches(".*xerces-[^/]*jar$")) {
continue;
}
lc.addFile(list[i]);
}
return new RootLoader(lc);
}
use of org.codehaus.groovy.tools.LoaderConfiguration in project groovy by apache.
the class RootLoaderRef method makeRoot.
private RootLoader makeRoot() {
String[] list = taskClasspath.list();
LoaderConfiguration lc = new LoaderConfiguration();
for (int i = 0; i < list.length; i++) {
if (list[i].matches(".*ant-[^/]*jar$")) {
continue;
}
if (list[i].matches(".*commons-logging-[^/]*jar$")) {
continue;
}
if (list[i].matches(".*xerces-[^/]*jar$")) {
continue;
}
lc.addFile(list[i]);
}
return new RootLoader(lc);
}
Aggregations