(CompilerConfiguration conf)
| 410 | } |
| 411 | |
| 412 | private static GroovyShell createConfigScriptsShell(CompilerConfiguration conf) { |
| 413 | Binding binding = new Binding(); |
| 414 | binding.setVariable("configuration", conf); |
| 415 | |
| 416 | CompilerConfiguration configuratorConfig = new CompilerConfiguration(); |
| 417 | ImportCustomizer customizer = new ImportCustomizer(); |
| 418 | |
| 419 | customizer.addStaticStars("org.codehaus.groovy.control.customizers.builder.CompilerCustomizationBuilder"); |
| 420 | |
| 421 | configuratorConfig.addCompilationCustomizers(customizer); |
| 422 | |
| 423 | return new GroovyShell(binding, configuratorConfig); |
| 424 | } |
| 425 | |
| 426 | |
| 427 | /** |
no test coverage detected