public void setProperties(Map<String,String> map) { File home = new File(""); String root = map.get("root"); if (root == null) { home = new File(System.getProperty("user.home")); this.root = Processor.getFile(home, ".m2/repository").getAbsoluteFile(); } else this.root = Processor.getFile(home, root).getAbsoluteFile(); if (!this.root.isDirectory()) { reporter.error("Maven repository did not get a proper URL to the repository %s", root); } name = map.get(NAME); }
public String _osfile(String args[]) { verifyCommand(args, _fileHelp, null, 3, 3); File base = new File(args[1]); File f = Processor.getFile(base, args[2]); return f.getAbsolutePath(); }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); OutputStream out = new FileOutputStream(f); try { r.write(out); } finally { out.close(); } return f; }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); OutputStream out = new FileOutputStream(f); try { r.write(out); } finally { out.close(); } return f; }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); OutputStream out = new FileOutputStream(f); try { r.write(out); } finally { out.close(); } return f; }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); OutputStream out = new FileOutputStream(f); try { r.write(out); } finally { out.close(); } return f; }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); OutputStream out = new FileOutputStream(f); try { r.write(out); } finally { out.close(); } return f; }
private Jar toJar(Processor context, String path) throws Exception { if (path == null) return null; File f = context.getFile(path); if (f.exists()) return new Jar(f); return null; }
public String _osfile(String args[]) { verifyCommand(args, _fileHelp, null, 3, 3); File base = new File(args[1]); File f = Processor.getFile(base, args[2]); return f.getAbsolutePath(); }
public String _osfile(String args[]) { verifyCommand(args, _fileHelp, null, 3, 3); File base = new File(args[1]); File f = Processor.getFile(base, args[2]); return f.getAbsolutePath(); }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); OutputStream out = new FileOutputStream(f); try { r.write(out); } finally { out.close(); } return f; }
private Jar toJar(Processor context, String path) throws Exception { if (path == null) return null; File f = context.getFile(path); if (f.exists()) return new Jar(f); return null; }
public String _osfile(String args[]) { verifyCommand(args, _fileHelp, null, 3, 3); File base = new File(args[1]); File f = Processor.getFile(base, args[2]); return IO.absolutePath(f); }
public String _osfile(String args[]) { verifyCommand(args, _fileHelp, null, 3, 3); File base = new File(args[1]); File f = Processor.getFile(base, args[2]); return IO.absolutePath(f); }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); try (OutputStream out = IO.outputStream(f)) { r.write(out); } return f; }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); try (OutputStream out = IO.outputStream(f)) { r.write(out); } return f; }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); try (OutputStream out = IO.outputStream(f)) { r.write(out); } return f; }
private File write(File base, Resource r, String fileName) throws Exception { File f = Processor.getFile(base, fileName); try (OutputStream out = IO.outputStream(f)) { r.write(out); } return f; }
public String _findfile(String args[]) { File f = getFile(args[1]); List<String> files = new ArrayList<>(); tree(files, f, "", new Instruction(args[2])); return join(files); }
public String _findfile(String args[]) { File f = getFile(args[1]); List<String> files = new ArrayList<>(); tree(files, f, "", new Instruction(args[2])); return join(files); }