Examples of ApiVersionFinder


Examples of com.google.appengine.tools.util.ApiVersionFinder

      fw.close();
    }
  }

  private static String findApiVersion(File baseDir, boolean deleteApiJars) {
    ApiVersionFinder finder = new ApiVersionFinder();

    String foundApiVersion = null;
    File webInf = new File(baseDir, "WEB-INF");
    File libDir = new File(webInf, "lib");
    for (File file : new FileIterator(libDir)) {
      if (file.getPath().endsWith(".jar")) {
        try {
          String apiVersion = finder.findApiVersion(file);
          if (apiVersion != null) {
            if (foundApiVersion == null) {
              foundApiVersion = apiVersion;
            } else if (!foundApiVersion.equals(apiVersion)) {
              logger.warning("Warning: found duplicate API version: " + foundApiVersion +
View Full Code Here

Examples of com.google.appengine.tools.util.ApiVersionFinder

  private final Collection<File> apiJars;
  private final ApiVersionFinder versionFinder;

  public LocalVersionFactory(Collection<File> apiJars) {
    this.apiJars = apiJars;
    this.versionFinder = new ApiVersionFinder();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.