uima-ducc-cli/src/main/java/org/apache/uima/ducc/cli/DuccJobSubmit.java [299:321]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	  private URLClassLoader newClassLoader(String[] classPathElements) throws IOException  {
		    ArrayList<URL> urlList = new ArrayList<URL>(classPathElements.length);
		    for (String element : classPathElements) {
		      if (element.endsWith("*")) {
		        File dir = new File(element.substring(0, element.length() - 1));
		        File[] files = dir.listFiles();   // Will be null if missing or not a dir
		        if (files != null) {
		          for (File f : files) {
		            if (f.getName().endsWith(".jar")) {
		              urlList.add(f.getCanonicalFile().toURI().toURL());
		            }
		          }
		        }
		      } else {
		        File f = new File(element);
		        if (f.exists()) {
		          urlList.add(f.getCanonicalFile().toURI().toURL());
		        }
		      }
		    }
		    URL[] urls = new URL[urlList.size()];
		    return new URLClassLoader(urlList.toArray(urls), ClassLoader.getSystemClassLoader().getParent());
		  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



uima-ducc-user/src/main/java/org/apache/uima/ducc/user/common/PrivateClassLoader.java [42:64]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public static URLClassLoader create(String[] classPathElements) throws IOException  {
    ArrayList<URL> urlList = new ArrayList<URL>(classPathElements.length);
    for (String element : classPathElements) {
      if (element.endsWith("*")) {
        File dir = new File(element.substring(0, element.length() - 1));
        File[] files = dir.listFiles();   // Will be null if missing or not a dir
        if (files != null) {
          for (File f : files) {
            if (f.getName().endsWith(".jar")) {
              urlList.add(f.getCanonicalFile().toURI().toURL());
            }
          }
        }
      } else {
        File f = new File(element);
        if (f.exists()) {
          urlList.add(f.getCanonicalFile().toURI().toURL());
        }
      }
    }
    URL[] urls = new URL[urlList.size()];
    return new URLClassLoader(urlList.toArray(urls), ClassLoader.getSystemClassLoader().getParent());
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



