Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 385 for delegates (0.14 sec)

  1. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr4_settings_file.adoc

    ----
    includeBuild("some-build")                         // Delegates to Settings.includeBuild()
    reportsDir = findProject("/myInternalProject")     // Delegates to Settings.findProject()
    ----
    =====
    [.multi-language-sample]
    =====
    [source, groovy]
    ----
    includeBuild('some-build')                         // Delegates to Settings.includeBuild()
    reportsDir = findProject('/myInternalProject')     // Delegates to Settings.findProject()
    ----
    =====
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/configuration/BuildOperationScriptPluginTest.groovy

        def buildOperationScriptPlugin = new BuildOperationScriptPlugin(decoratedScriptPlugin, buildOperationRunner, userCodeApplicationContext)
        def target = "Test Target"
    
        def "delegates to decorated script plugin via build operation"() {
            when:
            buildOperationScriptPlugin.apply(target)
    
            then:
            2 * scriptSource.getResource() >> scriptSourceResource
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AbstractSkipEmptyWorkStepTest.groovy

            then:
            1 * delegate.execute(work, {
                it.inputProperties as Map == ["known": knownSnapshot]
                it.inputFileProperties as Map == ["known-file": knownFileFingerprint]
            }) >> delegateResult
            1 * workInputListeners.broadcastFileSystemInputsOf(work, allFileInputs)
            0 * _
    
            result == delegateResult
        }
    
        def "delegates when work has sources"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ShortCircuitEmptyConfigurationResolverSpec.groovy

            1 * lockingState.lockedDependencies >> [DefaultModuleComponentIdentifier.newId(DefaultModuleIdentifier.newId('org', 'foo'), '1.0')]
            1 * delegate.resolveGraph(resolveContext) >> delegateResults
            results == delegateResults
        }
    
        def "delegates to backing service to resolve build dependencies when there are one or more dependencies"() {
            given:
            ResolverResults delegateResults = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/test/groovy/org/gradle/api/plugins/ApplicationPluginTest.groovy

        }
    
        void "mainClassName in project delegates to mainClassName in startScripts task"() {
            when:
            plugin.apply(project);
            project.mainClassName = "Acme"
    
            then:
            def startScripts = project.tasks[ApplicationPlugin.TASK_START_SCRIPTS_NAME]
            startScripts.mainClassName == "Acme"
        }
    
        void "applicationDefaultJvmArgs in project delegates to jvmArgs in run task"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/ReportingJvmMetadataDetectorTest.groovy

        def "delegates and reports each call"() {
            given:
            def location = InstallationLocation.userDefined(new File("jdkHome"), "test")
            def metadata = Mock(JvmInstallationMetadata)
            def reporter = Mock(BiConsumer)
            def delegate = Mock(JvmMetadataDetector)
    
            def detector = new ReportingJvmMetadataDetector(delegate, reporter)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestWorkspaceBuilder.groovy

     *
     * Should be inner class of TestFile, but can't because Groovy has issues with inner classes as delegates.
     */
    class TestWorkspaceBuilder {
        def TestFile baseDir
    
        def TestWorkspaceBuilder(TestFile baseDir) {
            this.baseDir = baseDir
        }
    
        def apply(Closure cl) {
            cl.delegate = this
            cl.resolveStrategy = Closure.DELEGATE_FIRST
            cl()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceListerTest.groovy

        def delegate = Mock(ExternalResourceLister)
        def buildOperationRunner = Mock(BuildOperationRunner)
        def context = Mock(BuildOperationContext)
        def lister = new ProgressLoggingExternalResourceLister(delegate, buildOperationRunner)
        def location = new ExternalResourceName(new URI("https://location/"))
    
        def "delegates list to delegate and generates build operation"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 12:31:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/DelegatingCodec.kt

    import org.gradle.internal.serialize.graph.withCodec
    
    
    /**
     * A codec that delegates to some more general codec, but only for a specific type
     */
    class DelegatingCodec<T>(
        private val userTypesCodec: Codec<Any?>,
    ) : Codec<T> {
    
        override suspend fun WriteContext.encode(value: T) {
            // Delegate to the other codec
            withCodec(userTypesCodec) {
                write(value)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/DefaultClassPathRegistryTest.groovy

            when:
            registry.getClassPath("name")
    
            then:
            IllegalArgumentException e = thrown()
            e.message == 'unknown classpath \'name\' requested.'
        }
    
        def "delegates to providers to find classpath"() {
            def classpath = Mock(ClassPath)
    
            given:
            provider1.findClassPath(_) >> null
            provider2.findClassPath("name") >> classpath
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top