Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,166 for Managed (0.21 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/AbstractClassBackedManagedTypeIntegrationTest.groovy

            then:
            fails 'tasks'
    
            and:
            failure.assertHasCause("Calling setters of a managed type on itself is not allowed")
        }
    
        def "reports managed abstract type in missing property error message"() {
            when:
            buildScript '''
                @Managed
                abstract class Person {
                    abstract String getName()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ModelSetIntegrationTest.groovy

            output.contains "setStrings: [[a], [b]]"
        }
    
        def "managed model type has property of collection of managed types"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                  String getName()
                  void setName(String string)
                }
    
                @Managed
                interface Group {
                  String getName()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

        }
    
        @Managed
        static interface BooleanGetter1 {
            boolean getFlag()
        }
    
        @Managed
        static interface BooleanGetter2 {
            boolean isFlag()
        }
    
        @Managed
        static interface BooleanGetter3 {
            boolean getFlag()
    
            boolean isFlag()
        }
    
        @Managed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/CyclicalManagedTypeIntegrationTest.groovy

        }
    
        def "managed types can have cyclical managed type references where more than two types constitute the cycle"() {
            when:
            buildScript '''
                @Managed
                interface A {
                    String getName()
                    void setName(String name)
    
                    B getB()
                }
    
                @Managed
                interface B {
                    C getC()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentIntegrationTest.groovy

                            assert components*.name == ["managed", "unmanaged"]
                            assert components.withType(ComponentSpec)*.name == ["managed", "unmanaged"]
                            assert components.withType(UnmanagedComponentSpec)*.name == ["managed", "unmanaged"]
                            assert components.withType(ManagedComponentSpec)*.name == ["managed"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/VariantAspectExtractionIntegrationTest.groovy

            fails "components"
            failure.assertHasCause "Invalid managed model type SampleBinary: @Variant annotation only allowed for properties of type String and org.gradle.api.Named, but property has type java.lang.Integer (invalid property: variantProp)"
        }
    
        def "variant annotation on property with primitive type raises error"() {
            buildFile << """
            @Managed
            interface SampleBinary extends BinarySpec {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InterfaceBackedManagedTypeIntegrationTest.groovy

        def "rule method can define a managed model element backed by an interface"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                    String getName()
                    void setName(String name)
                }
    
                @Managed
                interface Names {
                    String getName()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/typeregistration/BaseInstanceFactoryTest.groovy

        static interface OtherThingSpec extends ThingSpec {}
        static @Managed interface ManagedThingSpec extends ThingSpec {}
        static @Managed interface ChildManagedThingSpec extends ManagedThingSpec {}
        static @Managed interface ManagedThingSpecInternal {}
        static @Managed interface ManagedThingSpecInternalExtendingThingSpecInternal extends ThingSpecInternal {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedImmutableManagedValue.java

    import org.gradle.internal.state.Managed;
    import org.gradle.internal.state.ManagedFactory;
    import org.gradle.internal.state.ManagedFactoryRegistry;
    
    import javax.annotation.Nullable;
    
    public class IsolatedImmutableManagedValue extends AbstractIsolatableScalarValue<Managed> {
        private final ManagedFactoryRegistry managedFactoryRegistry;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelMapIntegrationTest.groovy

        }
    
        def "rule can create a map of abstract class backed managed model elements"() {
            when:
            buildScript '''
                @Managed
                abstract class Thing implements Named {
                  abstract String getName()
                  abstract void setValue(String value)
                  abstract String getValue()
                }
    
                @Managed
                interface Container {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top