Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 293 for PROP (0.13 sec)

  1. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/FileSystemPropertySpec.groovy

            def file = tmpDir.file("thing")
            def prop = propertyWithNoValue()
            prop.set(file)
    
            expect:
            prop.get().asFile == file
        }
    
        def "can set value using relative file"() {
            given:
            def file = new File("thing")
            def prop = propertyWithNoValue()
            prop.set(file)
    
            expect:
            prop.get().asFile == tmpDir.file("thing")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInjection.groovy

            return []
        }
    
        static List<SystemPropertyInjection> all(String prop, String value) {
            return [
                commandLine(prop, value),
                gradleProperties(prop, value),
                clientJvmArgs(prop, value)
            ]
        }
    
        static SystemPropertyInjection commandLine(String prop, String value) {
            return new SystemPropertyInjection() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. subprojects/core/src/test/groovy/org/gradle/internal/classpath/InstrumentedTest.groovy

            System.setProperty("prop", "123")
    
            when:
            def result = Instrumented.getInteger("prop", "consumer")
    
            then:
            result == 123
            1 * listener.systemPropertyQueried("prop", "123", "consumer")
            0 * listener._
    
            System.setProperty("prop", "not an int")
    
            when:
            result = Instrumented.getInteger("prop", "consumer")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskOutputsTest.groovy

        }
    
        def "can register unnamed output files with property name"() {
            when:
            outputs.files("a", "b").withPropertyName("prop")
            then:
            outputs.files.files == files('a', "b")
            outputs.fileProperties*.propertyName == ['prop$1', 'prop$2']
            outputs.fileProperties*.propertyFiles*.files.flatten() == [file("a"), file("b")]
        }
    
        def "can register named output files"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 15 21:46:24 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top