Examples of SourceMerger


Examples of de.matrixweb.smaller.resource.SourceMerger

  private Resource executeSimpleMerge(final VFS vfs, final Resource resource,
      final Map<String, Object> options) throws IOException {
    return resource.getResolver()
        .resolve(
            new SourceMerger("once".equals(options.get("source")) ? true
                : false).getMergedJsonFile(vfs, resource.getResolver(),
                resource.getPath()));
  }
View Full Code Here

Examples of de.matrixweb.smaller.resource.SourceMerger

        final List<Resource> res = resources.getByType(type);
        if (entry.processor.supportsType(type)) {
          LOGGER.info("Executing processor {} for type {}", entry.name, type);
          final List<Resource> results = new ArrayList<Resource>();
          // TODO: SourceMerger should not be required here
          final ResourceGroup group = new ResourceGroup(res, new SourceMerger(
              GlobalOptions.isSourceOnce(task)));
          group.apply(vfs, entry.processor, entry.options);
          results.addAll(group.getResources());
          resources.replace(res, results);
        }
View Full Code Here

Examples of net.sf.kpex.prolog.SourceMerger

  @Override
  public int exec(Prog p)
  {
    Const list = (Const) getArg(0);
    return putArg(1, new SourceMerger(list, p), p);
  }
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.