public void addResource(Resource r) { lastModified = Math.max(lastModified, r.lastModified()); resources.add(r); }
public void addResource(Resource r) { lastModified = Math.max(lastModified, r.lastModified()); resources.add(r); }
public void addResource(Resource r) { lastModified = Math.max(lastModified, r.lastModified()); resources.add(r); }
public void addResource(Resource r) { lastModified = Math.max(lastModified, r.lastModified()); resources.add(r); }
public void addResource(Resource r) { lastModified = Math.max(lastModified, r.lastModified()); resources.add(r); }
public static void build(Jar sub, Resource resource) throws Exception { InputStream in = resource.openInputStream(); try { build(sub, in, resource.lastModified()); } catch (Exception e) { e.printStackTrace(); } finally { in.close(); } }
public static void build(Jar sub, Resource resource) throws Exception { InputStream in = resource.openInputStream(); try { build(sub, in, resource.lastModified()); } catch (Exception e) { e.printStackTrace(); } finally { in.close(); } }
public static void build(Jar sub, Resource resource) throws Exception { InputStream in = resource.openInputStream(); try { build(sub, in, resource.lastModified()); } catch (Exception e) { e.printStackTrace(); } finally { in.close(); } }
private void reportNewer(long lastModified, Jar jar) { if (isTrue(getProperty(Constants.REPORTNEWER))) { StringBuilder sb = new StringBuilder(); String del = "Newer than " + new Date(lastModified); for (Map.Entry<String,Resource> entry : jar.getResources().entrySet()) { if (entry.getValue().lastModified() > lastModified) { sb.append(del); del = ", \n "; sb.append(entry.getKey()); } } if (sb.length() > 0) warning(sb.toString()); } }
private void reportNewer(long lastModified, Jar jar) { if (isTrue(getProperty(Constants.REPORTNEWER))) { StringBuilder sb = new StringBuilder(); String del = "Newer than " + new Date(lastModified); for (Map.Entry<String,Resource> entry : jar.getResources().entrySet()) { if (entry.getValue().lastModified() > lastModified) { sb.append(del); del = ", \n "; sb.append(entry.getKey()); } } if (sb.length() > 0) warning(sb.toString()); } }
public PreprocessResource(Processor processor, Resource r) { super(r.lastModified()); this.processor = processor; this.resource = r; setExtra(resource.getExtra()); }
private void reportNewer(long lastModified, Jar jar) { if (isTrue(getProperty(Constants.REPORTNEWER))) { StringBuilder sb = new StringBuilder(); String del = "Newer than " + new Date(lastModified); for (Map.Entry<String,Resource> entry : jar.getResources().entrySet()) { if (entry.getValue().lastModified() > lastModified) { sb.append(del); del = ", \n "; sb.append(entry.getKey()); } } if (sb.length() > 0) warning(sb.toString()); } }
private void reportNewer(long lastModified, Jar jar) { if (isTrue(getProperty(Constants.REPORTNEWER))) { StringBuilder sb = new StringBuilder(); String del = "Newer than " + new Date(lastModified); for (Map.Entry<String, Resource> entry : jar.getResources() .entrySet()) { if (entry.getValue() .lastModified() > lastModified) { sb.append(del); del = ", \n "; sb.append(entry.getKey()); } } if (sb.length() > 0) warning("%s", sb.toString()); } }
public PreprocessResource(Processor processor, Resource r) { super(r.lastModified()); this.processor = processor; this.resource = r; setExtra(resource.getExtra()); }
public PreprocessResource(Processor processor, Resource r) { super(r.lastModified()); this.processor = processor; this.resource = r; setExtra(resource.getExtra()); }
public PreprocessResource(Processor processor, Resource r) { super(r.lastModified()); this.processor = processor; this.resource = r; setExtra(resource.getExtra()); }
private Jar buildFromResource(Resource resource) throws Exception { return buildFromInputStream(resource.openInputStream(), resource.lastModified()); }
/** * Turn a resource into a file so that anything in the conversion is * properly caught * * @param r * @throws Exception */ public FileResource(Resource r) throws Exception { file = Files.createTempFile("fileresource", ".resource"); deleteOnClose(true); file.toFile() .deleteOnExit(); try (OutputStream out = IO.outputStream(file)) { r.write(out); } lastModified = r.lastModified(); size = Files.size(file); }
public PreprocessResource(Processor processor, Resource r) { super(r.lastModified()); this.processor = processor; this.resource = r; setExtra(resource.getExtra()); }
private Jar buildFromResource(Resource resource) throws Exception { return buildFromInputStream(resource.openInputStream(), resource.lastModified()); }