private boolean run ( ) { try { if ( processSockets ) { processSockets ( ) ; } else if ( processFiles ) { processFiles ( ) ; } else { processOnce ( ) ; } return true ; } catch ( CompilationFailedException e ) { System . err . println ( e ) ; return false ; } catch ( Throwable e ) { if ( e instanceof InvokerInvocationException ) { InvokerInvocationException iie = ( InvokerInvocationException ) e ; e = iie . getCause ( ) ; } System . err . println ( "Caught: " + e ) ; if ( ! debug ) { StackTraceUtils . deepSanitize ( e ) ; } e . printStackTrace ( ) ; return false ; } }
Run the script .