Package owl.run

Class RunUtil


  • public final class RunUtil
    extends Object
    • Method Detail

      • getDefaultAnnotationOption

        public static org.apache.commons.cli.Option getDefaultAnnotationOption()
      • checkDefaultAnnotationOption

        public static boolean checkDefaultAnnotationOption​(org.apache.commons.cli.CommandLine settings)
      • failWithMessage

        public static AssertionError failWithMessage​(String message)
        Prints given message on standard error and calls System.exit(int) with 1. An exception is returned to allow for one-line statements like throw failWithMessage("error!"). This approximates the actual control flow as precise as possible, since System.exit(int) does not return, but the compiler doesn't know about this.
      • checkForVersion

        public static void checkForVersion​(String[] args)
      • execute

        public static void execute​(Callable<Void> runner)
        Executes the given given runner and logs any occurring error to the console.