c.setVerbose(verbose);
c.setWarnings(warnings);
c.setVeryVerbose(veryverbose);
- c.compile();
+ boolean hasErrors = c.compile();
+ if (hasErrors) Runtime.getRuntime().exit(-1);
+ Runtime.getRuntime().exit(0);
}
private static void printHelp() {
System.out.println("Usage java -cp ... org.ibex.tool.Compiler [options] <source dir> ...");
public void setVeryVerbose(boolean v) { veryverbose = v; }
public void setWarnings(boolean w) { warnings = w; }
- public void compile() throws IOException {
+ public boolean compile() throws IOException {
List s = new ArrayList();
if (buildzip) {
e.printStackTrace();
}
if (verbose) System.out.print(clearing + " \r");
+ return hasErrors;
}
private final FilenameFilter filterSrcs = new FilenameFilter() {