Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for mapProperty (0.18 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            "${SetProperty.name}<String>"         | "objects.setProperty(String); v.set(['abc'])"         | "objects.setProperty(String); v.set(['123'])"                | null
            "${MapProperty.name}<String, Number>" | "objects.mapProperty(String, Number); v.set([a: 12])" | "objects.mapProperty(String, Number); v.set([a: 10])"        | null
        }
    
        def "null input properties registered via TaskInputs.property are not allowed"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionInstantiationIntegrationTest.groovy

            """
    
            expect:
            succeeds()
        }
    
        def "can create instance of interface with read-only MapProperty property"() {
            buildFile """
                interface Thing {
                    MapProperty<String, String> getValue()
                }
    
                extensions.create("thing", Thing)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 16.9K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart1IntegrationTest.groovy

                    @$annotation
                    public abstract ListProperty<ResolvedArtifactResult> getListPropertyInput();
    
                    @$annotation
                    public abstract MapProperty<String, ResolvedArtifactResult> getMapPropertyInput();
    
                    @Nested
                    public NestedBean getNestedBean() { return nested; }
                }
            """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestInputAnnotationFailuresIntegrationTest.groovy

                    abstract SetProperty<URL> getSetPropertyInput();
    
                    @Input
                    abstract ListProperty<URL> getListPropertyInput();
    
                    @Input
                    abstract MapProperty<String, URL> getMapPropertyInput();
    
                    @Nested
                    abstract NestedBean getNestedInput();
                }
    
                tasks.register('verify', TaskWithInput) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyManagementResultsAsInputsIntegrationTest.groovy

                    $annotation
                    abstract ListProperty<ResolvedArtifactResult> getListPropertyInput();
    
                    $annotation
                    abstract MapProperty<String, ResolvedArtifactResult> getMapPropertyInput();
    
                    @Nested
                    abstract NestedBean getNestedInput();
                }
    
                tasks.register('verify', TaskWithInput) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorServicesIntegrationTest.groovy

                objectFactory.fileTree()
                objectFactory.property(String)
                objectFactory.listProperty(String)
                objectFactory.setProperty(String)
                objectFactory.mapProperty(String, String)
                objectFactory.named(Foo, "foo")
                objectFactory.domainObjectSet(Foo)
                objectFactory.domainObjectContainer(Foo)
                objectFactory.polymorphicDomainObjectContainer(Foo)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  7. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParametersIntegrationTest.groovy

            where:
            isolationMode << ISOLATION_MODES
        }
    
        def "can provide map property parameters with isolation mode #isolationMode"() {
            buildFile << """
                ${parameterWorkAction('MapProperty<String, String>', 'println parameters.testParam.get().collect { it.key + ":" + it.value }.join(",")') }
    
                task runWork(type: ParameterTask) {
                    isolationMode = ${isolationMode}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformValuesInjectionIntegrationTest.groovy

            "ListProperty<String>"        | "['a', 'b']"   | "[a, b]"     | "[]"
            "SetProperty<String>"         | "['a', 'b']"   | "[a, b]"     | "[] as Set"
            "MapProperty<String, Number>" | "[a: 1, b: 2]" | "[a:1, b:2]" | "[:]"
        }
    
        @Issue("https://github.com/gradle/gradle/issues/16982")
        def "transform can set convention on parameter of type #type"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 11:12:24 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeCodeGenTest.groovy

            "ListProperty<String>"        | "List"           | "new ListPropertyListView<>(self.getProperty())" | ".set(arg0)"       | [SuppressWarnings, List, ListPropertyListView]
            "MapProperty<String, String>" | "Map"            | "new MapPropertyMapView<>(self.getProperty())"   | ".set(arg0)"       | [SuppressWarnings, Map, MapPropertyMapView]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/properties_providers.adoc

    |`DirectoryProperty`
    |Configurable directory location, whose value is mutable
    
    |`ListProperty<T>`
    |List of elements of type `T`
    
    |`SetProperty<T>`
    |Set of elements of type `T`
    
    |`MapProperty<K, V>`
    |Map of `K` type keys with `V` type values
    
    |`ConfigurableFileCollection`
    |A mutable `FileCollection` which represents a collection of file system locations
    
    |`ConfigurableFileTree`
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top