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 {
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);
}
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) {