private String compile(final List<AssetProcessor> pipeline, final String filename, final MediaType type, final String input) throws Exception { log.debug(" {}", filename); Iterator<AssetProcessor> it = pipeline.iterator(); String output = input; while (it.hasNext()) { AssetProcessor processor = it.next(); if (processor.matches(type) && !processor.excludes(filename)) { String pname = processor.name(); long start = System.currentTimeMillis(); try { log.debug(" executing: {}", pname); output = processor.process(filename, output, conf, loader); } finally { long end = System.currentTimeMillis(); log.debug(" {} took {}ms", pname, end - start); } } } return output; }
private String compile(final List<AssetProcessor> pipeline, final String filename, final MediaType type, final String input) throws Exception { log.debug(" {}", filename); Iterator<AssetProcessor> it = pipeline.iterator(); String output = input; while (it.hasNext()) { AssetProcessor processor = it.next(); if (processor.matches(type) && !processor.excludes(filename)) { String pname = processor.name(); long start = System.currentTimeMillis(); try { log.debug(" executing: {}", pname); output = processor.process(filename, output, conf, loader); } finally { long end = System.currentTimeMillis(); log.debug(" {} took {}ms", pname, end - start); } } } return output; }