Package com.google.gwt.dev.resource.impl

Examples of com.google.gwt.dev.resource.impl.PathPrefix


      public boolean allows(String path) {
        return path.endsWith(".java") && scanner.match(path);
      }
    };

    PathPrefix pathPrefix = new PathPrefix(sourcePackage, sourceFileFilter,
        isSuperSource);
    sourcePrefixSet.add(pathPrefix);
  }
View Full Code Here


    ClassPathEntry entry = ResourceOracleImpl.createEntryForUrl(logger, url);
    assert (entry != null);
    ResourceOracleImpl resourceOracle = new ResourceOracleImpl(
        Collections.singletonList(entry));
    PathPrefixSet pathPrefixSet = new PathPrefixSet();
    PathPrefix pathPrefix = new PathPrefix(prefix, null, true);
    pathPrefixSet.add(pathPrefix);
    resourceOracle.setPathPrefixes(pathPrefixSet);
    resourceOracle.refresh(logger);
    Map<String, Resource> resourceMap = resourceOracle.getResourceMap();
    return resourceMap;
View Full Code Here

    if (lazyPublicOracle != null) {
      throw new IllegalStateException("Already normalized");
    }
    //XXX <Instantiations
    if (defaultExcludes && caseSensitive && includeList.length == 0 && excludeList.length == 0) {
        publicPrefixSet.add(new PathPrefix(publicPackage, new ResourceFilter() {
            public boolean allows(String path) {
              return path.startsWith(publicPackage);
            }
          }, true));
        return;
    }
    //XXX >Instantiations
    publicPrefixSet.add(new PathPrefix(publicPackage,
        defaultFilters.customResourceFilter(includeList, excludeList,
            defaultExcludes, caseSensitive), true));
  }
View Full Code Here

      throw new IllegalStateException("Already normalized");
    }
    //XXX <Instantiations
    if (defaultExcludes && caseSensitive && !isSuperSource
        && includeList.length == 0 && excludeList.length == 0) {
        sourcePrefixSet.add(new PathPrefix(sourcePackage, new ResourceFilter() {
            public boolean allows(String path) {
              return path.startsWith(sourcePackage) && path.endsWith(".java");
            }
          }, isSuperSource));
        return;
    }
    //XXX >Instantiations
    PathPrefix pathPrefix = new PathPrefix(sourcePackage,
        defaultFilters.customJavaFilter(includeList, excludeList,
            defaultExcludes, caseSensitive), isSuperSource);
    sourcePrefixSet.add(pathPrefix);
  }
View Full Code Here

    if (lazyResourcesOracle == null) {
      lazyResourcesOracle = new ResourceOracleImpl(TreeLogger.NULL);
      PathPrefixSet pathPrefixes = lazySourceOracle.getPathPrefixes();
      PathPrefixSet newPathPrefixes = new PathPrefixSet();
      for (PathPrefix pathPrefix : pathPrefixes.values()) {
        newPathPrefixes.add(new PathPrefix(pathPrefix.getPrefix(), null,
            pathPrefix.shouldReroot()));
      }
      lazyResourcesOracle.setPathPrefixes(newPathPrefixes);
      lazyResourcesOracle.refresh(TreeLogger.NULL);
    }
View Full Code Here

    }

    final ZipScanner scanner = getScanner(includeList, excludeList,
        defaultExcludes, caseSensitive);

    publicPrefixSet.add(new PathPrefix(publicPackage, new ResourceFilter() {
      public boolean allows(String path) {
        return scanner.match(path);
      }
    }, true));
  }
View Full Code Here

      public boolean allows(String path) {
        return path.endsWith(".java") && scanner.match(path);
      }
    };

    PathPrefix pathPrefix = new PathPrefix(sourcePackage, sourceFileFilter,
        isSuperSource);
    sourcePrefixSet.add(pathPrefix);
  }
View Full Code Here

    ClassPathEntry entry = ResourceOracleImpl.createEntryForUrl(logger, url);
    assert (entry != null);
    ResourceOracleImpl resourceOracle = new ResourceOracleImpl(
        Collections.singletonList(entry));
    PathPrefixSet pathPrefixSet = new PathPrefixSet();
    PathPrefix pathPrefix = new PathPrefix(prefix, null, true);
    pathPrefixSet.add(pathPrefix);
    resourceOracle.setPathPrefixes(pathPrefixSet);
    resourceOracle.refresh(logger);
    Map<String, Resource> resourceMap = resourceOracle.getResourceMap();
    return resourceMap;
View Full Code Here

  private ResourceOracle createResourceOracle(TreeLogger logger) {
    logger = logger.branch(TreeLogger.DEBUG, "Creating ResourceOracle");
    ResourceOracleImpl oracle = new ResourceOracleImpl(logger);

    PathPrefixSet pps = new PathPrefixSet();
    pps.add(new PathPrefix(packageName.replace('.', '/') + '/',
    // Eliminate stuff that's definitely not source material
        new ResourceFilter() {
          public boolean allows(String path) {
            return !(path.endsWith(".class") || path.contains("/."));
          }
View Full Code Here

      throw new IllegalStateException("Already normalized");
    }
    if (!attributeIsForTargetLibrary()) {
      return;
    }
    publicPrefixSet.add(new PathPrefix(getCurrentLibraryModuleName(), publicPackage, defaultFilters
        .customResourceFilter(includeList, excludeList, skipList, defaultExcludes, caseSensitive),
        true, excludeList));
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.resource.impl.PathPrefix

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.