Mirror Javac exit codes

Issue #39 resolved
Jesper Öqvist created an issue

Javac returns different exit codes depending on what caused Javac to fail. JastAddJ currently only returns 1 on failure, independent of what the failure was caused by. It would be nice if JastAddJ used the same exit codes as Javac.

The exit codes given by Javac are:

static final int
    EXIT_OK = 0,        // Compilation completed with no errors.
    EXIT_ERROR = 1,     // Completed but reported errors.
    EXIT_CMDERR = 2,    // Bad command-line arguments
    EXIT_SYSERR = 3,    // System error or resource exhaustion.
    EXIT_ABNORMAL = 4;  // Compiler terminated abnormally

(copied from http://bugs.sun.com/view_bug.do?bug_id=7014715)

Comments (1)

  1. Log in to comment