Search in sources :

Example 1 with LoaderConfiguration

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);
}
Also used : RootLoader(org.codehaus.groovy.tools.RootLoader) LoaderConfiguration(org.codehaus.groovy.tools.LoaderConfiguration)

Example 2 with LoaderConfiguration

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);
}
Also used : RootLoader(org.codehaus.groovy.tools.RootLoader) LoaderConfiguration(org.codehaus.groovy.tools.LoaderConfiguration)

Aggregations

LoaderConfiguration (org.codehaus.groovy.tools.LoaderConfiguration)2 RootLoader (org.codehaus.groovy.tools.RootLoader)2