public static void assertLauncherGood ( File launcher ) throws IOException { if ( ! launcher . exists ( ) ) { throw new IOException ( "Unknown file: " + launcher . getPath ( ) ) ; } if ( ! launcher . isFile ( ) ) { throw new IOException ( "Not a real file: " + launcher . getPath ( ) ) ; } if ( ! FileHandler . canExecute ( launcher ) ) { throw new IOException ( "Not executable: " + launcher . getPath ( ) ) ; } }
Asserts whether given launcher exists is a file and that it s executable .