Package org.appng.cli

Class CliBootstrap


  • public class CliBootstrap
    extends Object
    Main entry-point to the appNG command line interface, responsible for bootstrapping. Creates an ApplicationContext and delegates to CliCore.
    Author:
    Matthias Herlitzius
    • Constructor Detail

      • CliBootstrap

        public CliBootstrap()
    • Method Detail

      • run

        public static int run​(String[] args)
                       throws IOException
        Runs the command line interface
        Parameters:
        args - the command line arguments
        Returns:
        the execution status:
        • 0 - if everything went well
        • 9 - if the database is in an erroneous state
        • 10 - if an error occurred while executing the command
        • 11 - if there is no such command
        • 12 - if an invalid option was added to the command
        • 13 - if the command is missing some options
        Throws:
        IOException - if "/conf/appNG.properties" could not be found