public static FileRef newFileRef(String path) { return newFileRef(new File(path)); }
@Override public void readFrom(Element element) throws PackageException { String v = element.getAttribute("file"); if (v.length() > 0) { FileRef ref = FileRef.newFileRef(v); ref.fillPatternVariables(guardVars); file = ref.getFile(); guardVars.put("file", file); } v = element.getAttribute("md5"); if (v.length() > 0) { md5 = v; } v = element.getAttribute("onExit"); if (v.length() > 0) { onExit = Boolean.parseBoolean(v); } }
v = element.getAttribute("tofile"); if (v.length() > 0) { FileRef ref = FileRef.newFileRef(v); tofile = ref.getFile(); guardVars.put("tofile", tofile);