Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for PROP (0.33 sec)

  1. 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)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

    assert custom.prop.get() == "new value"
    
    tasks.create('t', SomeTask)
    tasks.t.prop = custom.prop
    assert tasks.t.prop.get() == "new value"
    
    custom.prop = "changed"
    assert custom.prop.get() == "changed"
    assert tasks.t.prop.get() == "changed"
    
    """
    
            expect:
            succeeds()
        }
    
        def "can set String property value using a GString"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheJavaSerializationIntegrationTest.groovy

                    SomeTask() {
                        value = new OtherBean(prop: 'a')
                        bean.value = new OtherBean(prop: 'b')
                    }
    
                    @TaskAction
                    void run() {
                        println "this.value = " + value.prop
                        println "bean.value = " + bean.value.prop
                    }
                }
    
                task ok(type: SomeTask)
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/contracts/description/KtContractDescriptionElementRenderer.kt

    private fun <T> PrettyPrinter.appendProperty(
        prop: KProperty<T>,
        renderer: (T, Boolean) -> Unit,
        endWithNewLine: Boolean = true
    ) {
        appendLine(prop.name + ":")
        withIndent {
            renderer(prop.call(), endWithNewLine)
        }
    }
    
    private fun PrettyPrinter.appendSimpleProperty(prop: KProperty<Any>, endWithNewLine: Boolean = true) {
        append(prop.name + ": ")
        append(prop.call().toString())
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicMethodLookupIntegrationTest.groovy

            given:
            buildFile """
    class ContactExtension {
        String prop
    }
    
    extensions.create('contacts', ContactExtension)
    ext.contacts = { args ->
        return args
    }
    
    contacts {
        assert delegate instanceof ContactExtension
        prop = "value"
    }
    assert extensions.contacts.prop == "value"
    
    assert contacts() == null
    assert contacts("a") == "a"
    """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 17:01:37 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jansi/DefaultJansiRuntimeResolver.java

            return getOperatingSystem() + getBitModel();
        }
    
        private int getBitModel() {
            String prop = System.getProperty("sun.arch.data.model");
            if (prop == null) {
                prop = System.getProperty("com.ibm.vm.bitmode");
            }
            if (prop != null) {
                return Integer.parseInt(prop);
            }
            return -1;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/services/internal/DefaultBuildServicesRegistryTest.groovy

                it.parameters.prop = "value 1"
            }
            def parameters = registry.registrations.getByName("service").parameters
            def service = provider.get()
    
            when:
            parameters.prop = "ignore me 1"
    
            then:
            service.prop == "value 1"
    
            when:
            service.parameters.prop = "ignore me 2"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    			}
    		}
    		if (prop.ValueValidation == nil || len(prop.ValueValidation.Enum) == 0) && len(f.EnumValues()) != 0 {
    			t.Errorf("field had more enum values than the property. field: %s", f.Name)
    		}
    		if prop.ValueValidation != nil {
    			fevs := f.EnumValues()
    			for _, fev := range fevs {
    				found := false
    				for _, pev := range prop.ValueValidation.Enum {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

            configurationCacheRun 'ok', '-Dsome.prop=42'
    
            then:
            outputContains 'sys prop value at configuration time = 42'
            outputContains 'sys prop value at execution time = 42'
            configurationCache.assertStateStored()
    
            when:
            configurationCacheRun 'ok', '-Dsome.prop=42'
    
            then:
            outputDoesNotContain 'sys prop value at configuration time = 42'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas.go

    		Extensions:           s.Extensions,
    		ValueValidation:      s.ValueValidation,
    		ValidationExtensions: s.ValidationExtensions,
    	}
    	props := make(map[string]schema.Structural, len(s.Properties))
    	for k, prop := range s.Properties {
    		props[k] = prop
    	}
    	stringType := schema.Structural{Generic: schema.Generic{Type: "string"}}
    	props["kind"] = stringType
    	props["apiVersion"] = stringType
    	props["metadata"] = schema.Structural{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top