Class BaseCommand

    • Constructor Detail

      • BaseCommand

        public BaseCommand()
    • Method Detail

      • getConfig

        public Path getConfig()
      • getProjectBase

        public Path getProjectBase()
      • getLogbackConfig

        public String getLogbackConfig()
      • getFlavor

        public String getFlavor()
      • overrideFlavor

        protected void overrideFlavor​(String flavor)
      • getBinDir

        public Path getBinDir()
      • getOutputDir

        public Path getOutputDir()
      • getErrorDir

        public Path getErrorDir()
      • getQuiet

        public boolean getQuiet()
      • isVerbose

        public boolean isVerbose()
      • setupConfig

        public void setupConfig()
      • setSystemProperty

        protected void setSystemProperty​(String key,
                                         String value)
      • parse

        public static <T extends EmissaryCommand> T parse​(Class<T> clazz,
                                                          String... args)
                                                   throws EmissaryException
        Create a new command and parse the args.

        Useful for testings. Also calls setup so properties are set

        Parameters:
        clazz - the Class of return type class
        args - vararg of Strings
        Throws:
        EmissaryException
      • reinitLogback

        public void reinitLogback()
      • logInfo

        public void logInfo​(String format,
                            Object... args)