- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GroovyShell (0.11 sec)
-
subprojects/core/src/testFixtures/groovy/org/gradle/util/TestUtil.groovy
.build() } static groovy.lang.Script createScript(String code) { new GroovyShell().parse(code) } static Object call(String text, Object... params) { toClosure(text).call(*params) } static Closure toClosure(String text) { return new GroovyShell().evaluate("return " + text) } static Closure toClosure(TestClosure closure) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 13.2K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/main/java/org/gradle/api/internal/tasks/compile/ApiGroovyCompiler.java
customizer.addStaticStars("org.codehaus.groovy.control.customizers.builder.CompilerCustomizationBuilder"); configuratorConfig.addCompilationCustomizers(customizer); GroovyShell shell = new GroovyShell(binding, configuratorConfig); try { shell.evaluate(configScript); } catch (Exception e) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 20.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy
data[args[0]] = args[1] } def proxy = generateSimpleView(interfaceWithPrimitiveProperty) def instance = proxy.newInstance(state, typeConverter) then: new GroovyShell(loader, new Binding(instance: instance)).evaluate """ instance.primitiveProperty = $value assert instance.primitiveProperty == $value instance """ where:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 27.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/NormalizingExcludeFactoryTest.groovy
def slurper = new JsonSlurper() def compilerConf = new CompilerConfiguration() compilerConf.scriptBaseClass = DelegatingScript.class.name def shell = new GroovyShell(this.class.classLoader, new Binding(), compilerConf) expect: input.readLines().eachWithIndex { line, index -> def parsedLine = slurper.parse(line.trim().getBytes("utf-8"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 17K bytes - Viewed (0)