Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for GroovyShell (0.18 sec)

  1. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

                    bindingMap.put("container", SingletonLaContainerFactory.getContainer());
                    final GroovyShell groovyShell = new GroovyShell(new Binding(bindingMap));
                    try {
                        return groovyShell.evaluate(template);
                    } catch (final JobProcessingException e) {
                        throw e;
                    } catch (final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java

                    bindingMap.put("container", SingletonLaContainerFactory.getContainer());
                    final GroovyShell groovyShell = new GroovyShell(new Binding(bindingMap));
                    try {
                        return groovyShell.evaluate(template);
                    } catch (final JobProcessingException e) {
                        throw e;
                    } catch (final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/groovy/quickstart/kotlin/src/main/groovy/org/gradle/Person.groovy

                name = str.text.trim()
            }
            getClass().getResourceAsStream('/script.groovy').withStream {InputStream str ->
                def shell = new GroovyShell()
                shell.person = this
                shell.evaluate(str.text)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 420 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/groovy/quickstart/groovy/src/main/groovy/org/gradle/Person.groovy

                name = str.text.trim()
            }
            getClass().getResourceAsStream('/script.groovy').withStream {InputStream str ->
                def shell = new GroovyShell()
                shell.person = this
                shell.evaluate(str.text)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 420 bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/DefaultScriptTest.groovy

            ServiceRegistry serviceRegistryMock = Mock(ServiceRegistry) {
                get(DynamicLookupRoutine) >> new DefaultDynamicLookupRoutine()
            }
    
            when:
            DefaultScript script = new GroovyShell(createBaseCompilerConfiguration()).parse(testScriptText)
            ProjectInternal testProject = TestUtil.create(temporaryFolder).rootProject()
            testProject.ext.custom = 'true'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 19 14:14:29 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/CompilationOutputsFixture.groovy

        Object evaluate(@GroovyBuildScriptLanguage String script) {
            CompilerConfiguration config = new CompilerConfiguration()
            config.classpath.add("${targetDir}/$lang/$sourceSet".toString())
            new GroovyShell(config).evaluate(script)
        }
    
        void execute(@GroovyBuildScriptLanguage String script) {
            evaluate(script)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top