Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for PROP (0.04 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/ClassInspectorTest.groovy

            def prop = details.getProperty('prop')
            prop.getters.size() == 2
            prop.setters.size() == 3
        }
    
        def "extracts properties from super class"() {
            expect:
            def details = ClassInspector.inspect(SubClass)
    
            details.propertyNames == ['class', 'metaClass', 'prop', 'readOnly', 'writeOnly', 'other'] as Set
    
            def prop = details.getProperty('prop')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 23:46:06 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

            given:
            buildFile """
    
    def prop = project.objects.listProperty(String)
    
    task thing {
        inputs.property("prop", prop)
        prop.set(["value 1"])
        doLast {
            prop.set(["ignored"])
            println "prop = " + prop.get()
        }
    }
    """
    
            when:
            fails("thing")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy

            given:
            buildFile << """
    
    def prop = project.objects.mapProperty(String, String)
    prop.set((Map)null)
    
    task thing {
        inputs.property("prop", prop).optional(true)
        doLast {
            println "prop = " + prop.getOrNull()
        }
    }
    """
    
            when:
            run("thing")
    
            then:
            output.contains("prop = null")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 15:28:53 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenProfileResolveIntegrationTest.groovy

                </activation>
                <properties>
                    <groupId.prop>groupB</groupId.prop>
                    <artifactId.prop>artifactB</artifactId.prop>
                    <version.prop>1.4</version.prop>
                </properties>
            </profile>
        </profiles>
    </project>
    """
    
            def transitiveModule = mavenHttpRepo.module("groupB", "artifactB", "1.4").publish()
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyLifecycleIntegrationTest.groovy

                three.prop.disallowUnsafeRead()
                three.prop = two.prop.map { "[\$it]" }
                two.prop = one.prop.orElse("unknown")
    
                gradle.taskGraph.whenReady {
                    println("three = " + three.prop.get())
                    println("two = " + two.prop.get())
                    println("one = " + one.prop.orNull)
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:00:52 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/NestedConfigureDslIntegrationTest.groovy

            buildFile << """
    ext.prop = "value 1"
    repositories {
        assert prop == "value 1"
        prop = "value 2"
        maven {
            assert prop == "value 2"
            prop = "value 3"
            1.times {
                assert prop == "value 3"
                prop = "value 4"
                authentication {
                    assert prop == "value 4"
                    prop = "value 5"
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/initialization/DefaultGradlePropertiesControllerTest.groovy

            1 * environment.propertiesFile(settingsPropertiesFile) >> ["prop": "settings value"]
            prefixedEnvironmentVariables = [(ENV_PROJECT_PROPERTIES_PREFIX + "prop"): "env value"]
            prefixedSystemProperties = [(SYSTEM_PROJECT_PROPERTIES_PREFIX + "prop"): "system value"]
    
            def projectProperties = ["prop": "project value"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 06 11:52:10 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionLifecycleIntegrationTest.groovy

                thing.prop.disallowUnsafeRead()
                thing.prop.from(layout.buildDirectory)
    
                try {
                    thing.prop.files
                } catch(IllegalStateException e) {
                    println("get files failed with: " + e.message)
                }
    
                def elements = thing.prop.elements
                try {
                    elements.get()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 10:55:07 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelGroovyScalarConfigurationIntegrationTest.groovy

            output.contains 'prop theFloat     : 0.7182818'
            output.contains 'prop theint       : 3'
            output.contains 'prop theInteger   : 8'
            output.contains 'prop theLong      : 4294967294'
            output.contains 'prop thelong      : 6442450941'
            output.contains 'prop theshort     : 21'
            output.contains 'prop theShort     : 55'
            output.contains 'prop thebyte      : 55'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

            expect:
            bean.prop.toString() == "property 'prop'"
            bean.prop.getOrNull() == defaultValue
            bean.prop.set(newValue)
            bean.prop.get() == newValue
    
            beanWithDisplayName.prop.toString() == "<display-name> property 'prop'"
    
            where:
            type                               | defaultValue | newValue
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top