|
@@ -191,18 +191,18 @@ public class Main { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// expect the worst |
|
|
|
|
|
int exitCode = 1; |
|
|
try { |
|
|
try { |
|
|
m.runBuild(coreLoader); |
|
|
m.runBuild(coreLoader); |
|
|
System.exit(0); |
|
|
|
|
|
|
|
|
exitCode = 0; |
|
|
} catch (BuildException be) { |
|
|
} catch (BuildException be) { |
|
|
if (m.err != System.err) { |
|
|
if (m.err != System.err) { |
|
|
printMessage(be); |
|
|
printMessage(be); |
|
|
} |
|
|
} |
|
|
System.exit(1); |
|
|
|
|
|
} catch (Throwable exc) { |
|
|
} catch (Throwable exc) { |
|
|
exc.printStackTrace(); |
|
|
exc.printStackTrace(); |
|
|
printMessage(exc); |
|
|
printMessage(exc); |
|
|
System.exit(1); |
|
|
|
|
|
} finally { |
|
|
} finally { |
|
|
if (isLogFileUsed) { |
|
|
if (isLogFileUsed) { |
|
|
if (out != null) { |
|
|
if (out != null) { |
|
@@ -221,6 +221,7 @@ public class Main { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
System.exit(exitCode); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|