Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for mapProperty (0.17 sec)

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

            buildFile << nestedBeanWithStringInput()
            buildFile << """
                abstract class CustomTask extends DefaultTask {
                    @Nested
                    abstract MapProperty<$type, NestedBean> getLazyMap()
    
                    @Nested
                    Map<$type, NestedBean> eagerMap = [:]
    
                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart2IntegrationTest.groovy

                    @Input
                    public abstract ListProperty<URL> getListPropertyInput();
    
                    @Input
                    public abstract MapProperty<String, URL> 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
    - 40K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ProviderCodecs.kt

            val valueType: Class<Any> = readClass().uncheckedCast()
            val state: ValueSupplier.ExecutionTimeValue<Map<Any, Any>> = providerCodec.run { decodeValue() }.uncheckedCast()
            return propertyFactory.mapProperty(keyType, valueType).apply {
                fromState(state)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/service_injection.adoc

    It provides methods for creating instances of different types, such as properties (`Property<T>`), collections (`ListProperty<T>`, `SetProperty<T>`, `MapProperty<K, V>`), file-related objects (`RegularFileProperty`, `DirectoryProperty`, `ConfigurableFileCollection`, `ConfigurableFileTree`), and more.
    
    You can obtain an instance of `ObjectFactory` using the `project.objects` property.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    |X
    |X
    
    |Map of files (`MapProperty<String, File>`)
    |Map of files (`Map<String, File>`)
    |
    |X
    
    |`DirectoryProperty`
    |`Directory`
    |X
    |X
    
    |Iterable of directories (`Property<Iterable<File>`)
    |Iterable of directories (`Iterable<File>`)
    |
    |X
    
    |Map of directories (`MapProperty<String, File>`)
    |Map of directories (`Map<String, File>`)
    |
    |X
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

            prop    | method                | type          | typeParam
            'prop1' | 'listProperty()'      | 'List'        | '<T>'
            'prop2' | 'setProperty()'       | 'Set'         | '<T>'
            'prop3' | 'mapProperty()'       | 'Map'         | '<K, V>'
            'prop4' | 'directoryProperty()' | 'Directory'   | ''
            'prop5' | 'fileProperty()'      | 'RegularFile' | ''
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/troubleshooting/validation_problems.adoc

    Types of the Java SE API, types of the Kotlin stdlib, and Groovy's GString are not supported, because they meet neither of those requirements.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Mar 23 22:37:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_5.adoc

    ==== Changes to incubating POM customization types
    
    - The type of `MavenPomDeveloper.properties` has changed from `Property<Map<String, String>>` to `MapProperty<String, String>`.
    - The type of `MavenPomContributor.properties` has changed from `Property<Map<String, String>>` to `MapProperty<String, String>`.
    
    ==== Changes to specifying operating system for native projects
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 03:01:48 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy

            expect:
            readableProperty(JavaTestSubject, String, "myProperty").getValue(myProperties) == "myValue"
        }
    
        def "read property using instance"() {
            expect:
            readableProperty(myProperties, String, "myProperty").getValue(myProperties) == "myValue"
        }
    
        def "write property"() {
            when:
            writeableProperty(JavaTestSubject, "myProperty", String.class).setValue(myProperties, "otherValue")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeClassSourceGenerator.java

            switch (implementationExtra.getPropertyType()) {
                case LIST_PROPERTY:
                case SET_PROPERTY:
                case MAP_PROPERTY:
                    return Collections.singletonList(AnnotationSpec.builder(SuppressWarnings.class)
                        .addMember("value", "$L", "{\"unchecked\", \"rawtypes\"}")
                        .build());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:11:23 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top