Run the script.
()
| 428 | * Run the script. |
| 429 | */ |
| 430 | private boolean run() { |
| 431 | try { |
| 432 | if (processSockets) { |
| 433 | processSockets(); |
| 434 | } else if (processFiles) { |
| 435 | processFiles(); |
| 436 | } else { |
| 437 | processOnce(); |
| 438 | } |
| 439 | return true; |
| 440 | } catch (CompilationFailedException e) { |
| 441 | LOGGER.log(ERROR, e.toString()); |
| 442 | return false; |
| 443 | } catch (Throwable e) { |
| 444 | if (e instanceof InvokerInvocationException iie) { |
| 445 | e = iie.getCause(); |
| 446 | } |
| 447 | LOGGER.log(ERROR, "Caught: {0}", e); |
| 448 | if (!debug) { |
| 449 | StackTraceUtils.deepSanitize(e); |
| 450 | } |
| 451 | e.printStackTrace(); |
| 452 | return false; |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Process Sockets. |
no test coverage detected