java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java
branchv_0
changeset 155 eb3676c6929b
parent 149 6a6f7b384591
child 166 5488c2dcf680
equal deleted inserted replaced
154:016836529e6c 155:eb3676c6929b
    43 import java.util.logging.Logger;
    43 import java.util.logging.Logger;
    44 import javax.xml.bind.JAXBContext;
    44 import javax.xml.bind.JAXBContext;
    45 import javax.xml.bind.Unmarshaller;
    45 import javax.xml.bind.Unmarshaller;
    46 
    46 
    47 /**
    47 /**
       
    48  * Entry point of the command line interface of SQL-DK.
    48  *
    49  *
    49  * @author Ing. František Kučera (frantovo.cz)
    50  * @author Ing. František Kučera (frantovo.cz)
    50  */
    51  */
    51 public class CLIStarter implements ConfigurationProvider {
    52 public class CLIStarter implements ConfigurationProvider {
    52 
    53 
    53 	// help:exit-codes
    54 	// help:exit-codes
    54 	public static final int EXIT_SUCCESS = 0; // doc:success
    55 	public static final int EXIT_SUCCESS = 0; // doc:success
    55 	public static final int EXIT_UNEXPECTED_ERROR = 1; // doc:unexpected error (probably bug)
    56 	public static final int EXIT_UNEXPECTED_ERROR = 1; // doc:unexpected error (probably bug)
       
    57 	// 2 is reserved: http://www.tldp.org/LDP/abs/html/exitcodes.html#EXITCODESREF
    56 	public static final int EXIT_SQL_ERROR = 3; // doc:SQL error
    58 	public static final int EXIT_SQL_ERROR = 3; // doc:SQL error
    57 	public static final int EXIT_CLI_PARSE_ERROR = 4; // doc:CLI options parse error
    59 	public static final int EXIT_CLI_PARSE_ERROR = 4; // doc:CLI options parse error
    58 	public static final int EXIT_CLI_VALIDATE_ERROR = 5; // doc:CLI options validation error
    60 	public static final int EXIT_CLI_VALIDATE_ERROR = 5; // doc:CLI options validation error
    59 	public static final int EXIT_CONFIGURATION_ERROR = 6; // doc:configuration error
    61 	public static final int EXIT_CONFIGURATION_ERROR = 6; // doc:configuration error
    60 	public static final int EXIT_FORMATTING_ERROR = 7; // doc:formatting error
    62 	public static final int EXIT_FORMATTING_ERROR = 7; // doc:formatting error