/*
 * FindBugs - Find bugs in Java programs
 * Copyright (C) 2003, University of Maryland
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package edu.umd.cs.findbugs;

/**
 * Process exit codes returned when the FindBugs text UI is
 * invoked with the -exitcode command line argument.
 */
public interface ExitCodes {
	/**
	 * Exit status code to indicate that serious analysis errors
	 * occurred.
	 */
	public static final int ERROR_EXIT_CODE = 3;

	/**
	 * Exit status code to indicate that classes needed for analysis
	 * were missing.  This is a minor error, so the bug reports may
	 * generally be trusted, although they might not be as accurate as
	 * possible.
	 */
	public static final int MISSING_CLASS_EXIT_CODE = 2;

	/**
	 * Exit status code to indicate that the analysis completed normally,
	 * but bugs were reported.
	 */
	public static final int BUGS_FOUND_EXIT_CODE = 1;

	/**
	 * Exit status code to indicate that the analysis completed normally,
	 * and no bugs were found in the analyzed code.
	 */
	public static final int NO_BUGS_FOUND_EXIT_CODE = 0;
}

// vim:ts=4

@@ -867,17 +867,39 @@
 %0A/**%0A * 
-P
+Flags returned in the p
 rocess e
@@ -906,17 +906,16 @@
 xit code
-s
  returne
@@ -920,16 +920,19 @@
 ned when
+%0A *
  the Fin
@@ -947,19 +947,16 @@
 xt UI is
-%0A *
  invoked
@@ -974,16 +974,19 @@
 exitcode
+%0A *
  command
@@ -1000,16 +1000,50 @@
 rgument.
+  These are combined in a bit set.
 %0A */%0Apub
@@ -1076,48 +1076,10 @@
 %09/**
-%0A%09 * Exit status code to indicate that s
+ S
 erio
@@ -1096,20 +1096,16 @@
 s errors
-%0A%09 *
  occurre
@@ -1106,18 +1106,17 @@
 ccurred.
-%0A%09
+ 
  */%0A%09pub
@@ -1146,68 +1146,25 @@
 ROR_
-EXIT_CODE = 3
+FLAG = 4
 ;%0A%0A%09/**
-%0A%09 * Exit status code to indicate that c
+ C
 lass
@@ -1185,20 +1185,16 @@
 analysis
-%0A%09 *
  were mi
@@ -1205,138 +1205,8 @@
 g.  
-This is a minor error, so the bug reports may%0A%09 * generally be trusted, although they might not be as accurate as%0A%09 * possible.%0A%09 
 */%0A%09
@@ -1243,25 +1243,20 @@
 G_CLASS_
-EXIT_CODE
+FLAG
  = 2;%0A%0A%09
@@ -1262,89 +1262,10 @@
 %09/**
-%0A%09 * Exit status code to indicate that the analysis completed normally,%0A%09 * but b
+ B
 ugs 
@@ -1278,18 +1278,17 @@
 eported.
-%0A%09
+ 
  */%0A%09pub
@@ -1323,206 +1323,16 @@
 UND_
-EXIT_CODE = 1;%0A%0A%09/**%0A%09 * Exit status code to indicate that the analysis completed normally,%0A%09 * and no bugs were found in the analyzed code.%0A%09 */%0A%09public static final int NO_BUGS_FOUND_EXIT_CODE = 0
+FLAG = 1
 ;%0A%7D%0A

Make the values a bitset.