From: mkersten Date: Sun, 1 Jun 2003 03:58:12 +0000 (+0000) Subject: Expanded error message to make it clear that it is coming from parsing. X-Git-Tag: V1_1_0~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6cdbc92699f3226cb8488ada7f347f6972d80b5;p=aspectj.git Expanded error message to make it clear that it is coming from parsing. --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java index c5dd98dea..415d0a977 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java @@ -474,7 +474,7 @@ public class BuildArgParser extends Main { } public void showError(String message) { - MessageUtil.error(handler, message); + MessageUtil.error(handler, CONFIG_MSG + message); } protected void showWarning(String message) { diff --git a/util/src/org/aspectj/util/ConfigParser.java b/util/src/org/aspectj/util/ConfigParser.java index dab133510..ae14e1f6f 100644 --- a/util/src/org/aspectj/util/ConfigParser.java +++ b/util/src/org/aspectj/util/ConfigParser.java @@ -22,7 +22,8 @@ public class ConfigParser { Location location; protected List files = new LinkedList(); private boolean fileParsed = false; - + protected static String CONFIG_MSG = "build config error: "; + public List getFiles() { return files; } public void parseCommandLine(String[] argsArray) throws ParseException { @@ -36,7 +37,7 @@ public class ConfigParser { public void parseConfigFile(File configFile) throws ParseException { if (fileParsed == true) { - throw new ParseException("The file has already been parsed.", null); + throw new ParseException(CONFIG_MSG + "The file has already been parsed.", null); } else { parseConfigFileHelper(configFile); } @@ -145,11 +146,11 @@ public class ConfigParser { if (location != null) { message += " at " + location.toString(); } - System.err.println(message); + System.err.println(CONFIG_MSG + message); } protected void showError(String message) { - throw new ParseException(message, location); + throw new ParseException(CONFIG_MSG + message, location); } void parseArgs(LinkedList args) {