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

Method processConfigScripts

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

Evaluates configuration scripts against the supplied compiler configuration. @param scripts the configuration script paths @param conf the configuration to customize @throws IOException if a script cannot be read

(List<String> scripts, CompilerConfiguration conf)

Source from the content-addressed store, hash-verified

367 * @throws IOException if a script cannot be read
368 */
369 public static void processConfigScripts(List<String> scripts, CompilerConfiguration conf) throws IOException {
370 if (scripts.isEmpty()) return;
371
372 GroovyShell shell = createConfigScriptsShell(conf);
373
374 for (String script : scripts) {
375 shell.evaluate(new File(script));
376 }
377 }
378
379 /**
380 * Evaluates inline configuration script text against the supplied compiler configuration.

Callers 2

processMethod · 0.80

Calls 3

evaluateMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected