Esempio n. 1
0
 /**
  * Try to resolve path to a resource or repository relative to a local path, or the engine's
  * repository path.
  *
  * @param path the resource name
  * @param localRoot a repository to look first
  * @return the resource or repository
  * @throws IOException if an I/O error occurred
  */
 public Trackable resolve(String path, Repository localRoot) throws IOException {
   Trackable t = findResource(path, null, localRoot);
   if (t == null || !t.exists()) {
     t = findRepository(path, localRoot);
   }
   return t;
 }
Esempio n. 2
0
 public void addToClasspath(Trackable path) throws MalformedURLException {
   loader.addURL(path.getUrl());
 }