Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 131 for prop4 (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                    if (error != null) {
                        props.setProperty(key + ERROR_KEY_SUFFIX, error);
                    } else {
                        props.remove(key + ERROR_KEY_SUFFIX);
                    }
    
                    getLogger().debug("Writing resolution-state to: " + touchfile);
                    channel.truncate(0);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. 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)
  8. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyIntegrationTest.groovy

    custom.prop = layout.buildDir.dir("dir3")
    assert custom.prop.get().asFile == file("build/dir3")
    
    custom.prop = file("dir4")
    assert custom.prop.get().asFile == file("dir4")
    
    custom.prop.set((Directory)null)
    assert custom.prop.getOrNull() == null
    
    custom.prop = file("foo")
    custom.prop.set(null)
    assert custom.prop.getOrNull() == null
    
    custom.prop = file("foo")
    custom.prop.set((File)null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyLifecycleIntegrationTest.groovy

            given:
            buildFile << """
    
    def prop = project.objects.fileProperty()
    
    task thing {
        ${registrationMethod}(prop)
        prop.set(file("file-1"))
        def other = file("ignored")
        doLast {
            prop.set(other)
            println "prop = " + prop.get()
        }
    }
    """
            file("file-1").createFile()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    // are still needed internally to perform equality checks.
    func escapeKeyProps(idents []string) []string {
    	result := make([]string, len(idents))
    	for i, prop := range idents {
    		if escaped, ok := cel.Escape(prop); ok {
    			result[i] = escaped
    		} else {
    			result[i] = prop
    		}
    	}
    	return result
    }
    
    // unstructuredSetList represents an unstructured data instance of an OpenAPI array with x-kubernetes-list-type=set.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
Back to top