MCPcopy Index your code
hub / github.com/apache/groovy / run

Method run

src/main/java/groovy/ui/GroovyMain.java:430–454  ·  view source on GitHub ↗

Run the script.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

processMethod · 0.95

Calls 8

processSocketsMethod · 0.95
processFilesMethod · 0.95
processOnceMethod · 0.95
deepSanitizeMethod · 0.95
printStackTraceMethod · 0.80
toStringMethod · 0.65
logMethod · 0.45
getCauseMethod · 0.45

Tested by

no test coverage detected