Package org.reflections.vfs

Examples of org.reflections.vfs.SystemDir


        return dir;
      }

      Vfs.Dir createDir(java.io.File file) {
        try {
          return file.exists() && file.canRead() ? file.isDirectory() ? new SystemDir(
              file) : new ZipDir(new JarFile(file))
              : null;
        } catch (IOException e) {
          e.printStackTrace();
        }
View Full Code Here


      File file = Vfs.getFile(url);
      if (file == null || file.exists() == false) {
        s_logger.warn("URL could not be resolved to a file: " + url);
        return new EmptyDir(file);
      } else {
        return new SystemDir(file);
      }
    }
View Full Code Here

        if (null == deployment)
            throw new RuntimeException("Unable identify deployment file for: " + url);

        // delegate unpacked archives to SystemDir handler
        if (deployment.isDirectory())
            return new SystemDir(toUrl(deployment.getAbsolutePath()));

        // if it's a file delegate to ZipDir handler
        ZipDir delegate = new ZipDir(toUrl("file:/" + deployment.getAbsolutePath()));
        return delegate;
    }
View Full Code Here

TOP

Related Classes of org.reflections.vfs.SystemDir

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.