Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for reregistering (0.17 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectContainerExtensions.kt

    }
    
    
    /**
     * Property delegate for registering new elements in the container.
     *
     * `tasks { val rebuild by registering }`
     *
     * @param T the domain object type
     * @param C the concrete container type
     */
    inline val <T : Any, C : NamedDomainObjectContainer<T>> C.registering: RegisteringDomainObjectDelegateProvider<out C>
        get() = RegisteringDomainObjectDelegateProvider.of(this)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 22:09:44 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/TaskContainerDslIntegrationTest.kt

                    val pipistrelle: TaskProvider<Task> by tasks.existing {
                        description += "B"
                    }
    
                    val yate: TaskProvider<Task> by tasks.registering
                    val vansire: TaskProvider<Task> by tasks.registering {
                        description += "!"
                    }
                }
    
                fun typed() {
    
                    val foo: Task by tasks.getting(Task::class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:27 UTC 2023
    - 15K bytes
    - Viewed (0)
  3. build-logic/packaging/src/main/kotlin/gradlebuild.distributions.gradle.kts

    val generateRelocatedPackageList by tasks.registering(PackageListGenerator::class) {
        classpath.from(runtimeClasspath)
        outputFile = generatedTxtFileFor("api-relocated")
    }
    
    // Extract public API metadata from source code of Gradle module Jars packaged in the distribution (used by the two tasks below to handle default imports in build scripts)
    val dslMetaData by tasks.registering(ExtractDslMetaDataTask::class) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectCollectionExtensionsTest.kt

            )
        }
    
        @Test
        fun `val domainObject by registering`() {
    
            val domainObjectProvider = mockDomainObjectProviderFor(DomainObject())
            val container = mock<NamedDomainObjectContainer<DomainObject>> {
                on { register("domainObject") } doReturn domainObjectProvider
            }
    
            container {
    
                val domainObject by registering
    
                inOrder(container, domainObjectProvider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/dependencies/TestSuitesKotlinDSLDependenciesIntegrationTest.groovy

                            dependencies {
                                implementation("org.apache.commons:commons-lang3:3.11")
                            }
                        }
                        val integTest by registering(JvmTestSuite::class) {
                            useJUnit()
                        }
                    }
                }
    
                tasks.named("check") {
                    dependsOn(testing.suites.named("integTest"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 11 16:25:08 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/build_services.adoc

    ----
    ====
    
    == Registering a build service and connecting it to a task
    
    To create a build service, you register the service instance using the link:{javadocPath}/org/gradle/api/services/BuildServiceRegistry.html#registerIfAbsent-java.lang.String-java.lang.Class-org.gradle.api.Action-[BuildServiceRegistry.registerIfAbsent()] method.
    Registering the service does not create the service instance.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:10 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/typeregistration/BaseInstanceFactoryTest.groovy

            ex.message == "Factory registration for '${fullyQualifiedNameOf(ManagedThingSpec)}' is invalid because it doesn't extend an interface with a default implementation"
        }
    
        def "fails when registering non-interface internal view"() {
            when:
            instanceFactory.register(ModelType.of(ThingSpec), new SimpleModelRuleDescriptor("thing"))
                .withInternalView(ModelType.of(Object))
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  8. src/net/rpc/server_test.go

    	if err == nil {
    		t.Error("expected error registering ReplyNotPointer")
    	}
    	err = Register(new(ArgNotPublic))
    	if err == nil {
    		t.Error("expected error registering ArgNotPublic")
    	}
    	err = Register(new(ReplyNotPublic))
    	if err == nil {
    		t.Error("expected error registering ReplyNotPublic")
    	}
    	err = Register(NeedsPtrType(0))
    	if err == nil {
    		t.Error("expected error registering NeedsPtrType")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 05:23:29 UTC 2023
    - 19K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/dependencysubstitution/DefaultDependencySubstitutionsSpec.groovy

            then:
            0 * validator.validateMutation(_)
        }
    
        def "registering an all rule toggles the hasRule flag"() {
            given:
            def action = Mock(Action)
    
            when:
            substitutions.all(action)
    
            then:
            substitutions.rulesMayAddProjectDependency()
        }
    
        def "registering a substitute rule with (#from, #to) causes hasRule #result"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/feature_variants.adoc

    [[sec::declare_feature_variants]]
    == Registering features
    
    Features can be declared by applying the `java-library` plugin.
    The following code illustrates how to declare a feature named `mongodbSupport`:
    
    .Registering a feature
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 18:45:05 UTC 2023
    - 13.2K bytes
    - Viewed (0)
Back to top