public SetLocation exception(Throwable t, String format, Object... args) { return error(format, t, args); }
public SetLocation exception(Throwable t, String format, Object... args) { return error(format, t, args); }
public SetLocation exception(Throwable t, String format, Object... args) { return error(format, t, args); }
public void mergeProperties(File file, boolean override) { if (file.isFile()) { try { Properties properties = loadProperties(file); mergeProperties(properties, override); } catch (Exception e) { error("Error loading properties file: %s", file); } } else { if (!file.exists()) error("Properties file does not exist: %s", file); else error("Properties file must a file, not a directory: %s", file); } }
/** * Return the name of the properties file */ public String _thisfile(String[] args) { if (propertiesFile == null) { error("${thisfile} executed on a processor without a properties file"); return null; } return IO.absolutePath(propertiesFile); }
public void mergeProperties(File file, boolean override) { if (file.isFile()) { try { Properties properties = loadProperties(file); mergeProperties(properties, override); } catch (Exception e) { error("Error loading properties file: %s", file); } } else { if (!file.exists()) error("Properties file does not exist: %s", file); else error("Properties file must a file, not a directory: %s", file); } }
public String _propertiesdir(String[] args) { if (args.length > 1) { error("propertiesdir does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return pf.getParentFile().getAbsolutePath(); }
public String _propertiesname(String[] args) { if (args.length > 1) { error("propertiesname does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return pf.getName(); }
public String _error(String args[]) { for (int i = 1; i < args.length; i++) { domain.error(process(args[i])); } return ""; }
public String _error(String args[]) { for (int i = 1; i < args.length; i++) { domain.error(process(args[i])); } return ""; }
public String _propertiesname(String[] args) { if (args.length > 1) { error("propertiesname does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return pf.getName(); }
/** * Return the name of the properties file */ public String _thisfile(String[] args) { if (propertiesFile == null) { error("${thisfile} executed on a processor without a properties file"); return null; } return IO.absolutePath(propertiesFile); }
public String _propertiesname(String[] args) { if (args.length > 1) { error("propertiesname does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return pf.getName(); }
public String _propertiesname(String[] args) { if (args.length > 1) { error("propertiesname does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return pf.getName(); }
public String _error(String args[]) { for (int i = 1; i < args.length; i++) { domain.error(process(args[i])); } return ""; }
public String _propertiesdir(String[] args) { if (args.length > 1) { error("propertiesdir does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return pf.getParentFile().getAbsolutePath(); }
public String _propertiesdir(String[] args) { if (args.length > 1) { error("propertiesdir does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return IO.absolutePath(pf.getParentFile()); }
public String _propertiesdir(String[] args) { if (args.length > 1) { error("propertiesdir does not take arguments"); return null; } File pf = getPropertiesFile(); if (pf == null) return ""; return IO.absolutePath(pf.getParentFile()); }
public String _error(String args[]) throws Exception { for (int i = 1; i < args.length; i++) { SetLocation error = domain.error("%s", process(args[i])); FileLine header = domain.getHeader(Pattern.compile(".*"), Pattern.compile("\\$\\{error;")); if (header != null) header.set(error); } return ""; }
public String _error(String args[]) throws Exception { for (int i = 1; i < args.length; i++) { SetLocation error = domain.error("%s", process(args[i])); FileLine header = domain.getHeader(Pattern.compile(".*"), Pattern.compile("\\$\\{error;")); if (header != null) header.set(error); } return ""; }