Package org.nutz.resource

Examples of org.nutz.resource.JarEntryInfo


          if (pos > 0)
            list.addAll(scanInDir(regex, f, ignoreHidden));
        }
        // 如果在 jar 中,则循环查找这个 jar 的每一个实体
        else {
          JarEntryInfo jeInfo = new JarEntryInfo(path);
          list.addAll(scanInJarcheckSrc(jeInfo.getEntryName()),
                      regex,
                      jeInfo.getJarPath()));
        }
      } else {
        try {
          Enumeration<URL> en = getClass().getClassLoader().getResources(src);
          if (en != null) {
            while (en.hasMoreElements()) {
              JarEntryInfo jeInfo = new JarEntryInfo(en.nextElement().getPath());
              list.addAll(scanInJarcheckSrc(jeInfo.getEntryName()),
                          regex,
                          jeInfo.getJarPath()));
            }
          }
        }
        catch (Throwable e) {
          e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.nutz.resource.JarEntryInfo

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.