public FileLine getHeader(Pattern header) throws Exception { return getHeader(header, null); }
public FileLine getHeader(Pattern header) throws Exception { return getHeader(header, null); }
/** * Get a header relative to this processor, tking its parents and includes * into account. * * @param header * @throws IOException */ public FileLine getHeader(String header) throws Exception { return getHeader( Pattern.compile("^[ \t]*" + Pattern.quote(header), Pattern.MULTILINE + Pattern.CASE_INSENSITIVE)); }
/** * Get a header relative to this processor, tking its parents and includes * into account. * * @param header * @throws IOException */ public FileLine getHeader(String header) throws Exception { return getHeader( Pattern.compile("^[ \t]*" + Pattern.quote(header), Pattern.MULTILINE + Pattern.CASE_INSENSITIVE)); }
/** * Get a header relative to this processor, tking its parents and includes * into account. * * @param location * @param header * @return * @throws IOException */ public FileLine getHeader(String header) throws Exception { return getHeader(Pattern.compile("^[ \t]*" + Pattern.quote(header), Pattern.MULTILINE + Pattern.CASE_INSENSITIVE)); }
/** * Get a header relative to this processor, tking its parents and includes * into account. * * @param location * @param header * @return * @throws IOException */ public FileLine getHeader(String header) throws Exception { return getHeader(Pattern.compile("^[ \t]*" + Pattern.quote(header), Pattern.MULTILINE + Pattern.CASE_INSENSITIVE)); }
public FileLine getHeader(String header, String clause) throws Exception { return getHeader(toFullHeaderPattern(header), clause == null ? null : Pattern.compile(Pattern.quote(clause))); }
public FileLine getHeader(String header, String clause) throws Exception { return getHeader(toFullHeaderPattern(header), clause == null ? null : Pattern.compile(Pattern.quote(clause))); }
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 ""; }
public String _warning(String args[]) throws Exception { for (int i = 1; i < args.length; i++) { SetLocation warning = domain.warning("%s", process(args[i])); FileLine header = domain.getHeader(Pattern.compile(".*"), Pattern.compile("\\$\\{warning;")); if (header != null) header.set(warning); } return ""; }
public String _warning(String args[]) throws Exception { for (int i = 1; i < args.length; i++) { SetLocation warning = domain.warning("%s", process(args[i])); FileLine header = domain.getHeader(Pattern.compile(".*"), Pattern.compile("\\$\\{warning;")); if (header != null) header.set(warning); } return ""; }
SetLocation location = error("%s: -prepare exit status = %s: %s", name, result, stdout + "\n" + errors); FileLine fl = getParent().getHeader("-prepare", make); if (fl != null) { fl.set(location);
SetLocation error = processor .error("Specified -connection-settings: %s, but no such file or is directory", file); FileLine header = processor.getHeader(CONNECTION_SETTINGS, key); if (header != null) header.set(error);
SetLocation location = error("%s: -prepare exit status = %s: %s", name, result, stdout + "\n" + errors); FileLine fl = getParent().getHeader("-prepare", make); if (fl != null) { fl.set(location);
fl = getParent().getHeader(header, clause); if (fl != null) return fl;
SetLocation error = processor .error("Specified -connection-settings: %s, but no such file or is directory", file); FileLine header = processor.getHeader(CONNECTION_SETTINGS, key); if (header != null) header.set(error);
fl = getParent().getHeader(header, clause); if (fl != null) return fl;
fl = getParent().getHeader(header); if (fl != null) return fl;
fl = getParent().getHeader(header); if (fl != null) return fl;