public void loadJarsFromPath()

in runner/src/main/java/org/jclouds/cli/runner/Main.java [186:199]


    public void loadJarsFromPath(File path) throws IOException {
        LinkedList<File> dirs = Lists.newLinkedList();
        dirs.add(path);
        while (!dirs.isEmpty()) {
            for (File f : dirs.poll().listFiles()) {
                if (f.isDirectory()) {
                    dirs.add(f);
                } else if (f.isFile() && f.getAbsolutePath().endsWith(".jar") && !f.getAbsolutePath().contains("pax-logging")) {
                    //We make sure to exclude pax logging jars when running outside of OSGi, since we use external logging jars in that case.
                    addURL(f.toURI().toURL());
                }
            }
        }
    }