Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,517 for PROPERTY (0.14 sec)

  1. platforms/documentation/docs/src/snippets/providers/propertyConvention/kotlin/build.gradle.kts

    tasks.register("show") {
        val property = objects.property(String::class)
    
        // Set a convention
        property.convention("convention 1")
    
        println("value = " + property.get())
    
        // Can replace the convention
        property.convention("convention 2")
        println("value = " + property.get())
    
        property.set("explicit value")
    
        // Once a value is set, the convention is ignored
        property.convention("ignored convention")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 547 bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ExtraPropertiesExtensions.kt

        get() = extensions.extraProperties
    
    
    /**
     * Provides property delegate for typed access to extra properties.
     */
    operator fun ExtraPropertiesExtension.provideDelegate(receiver: Any?, property: KProperty<*>): MutablePropertyDelegate =
        if (property.returnType.isMarkedNullable) NullableExtraPropertyDelegate(this, property.name)
        else NonNullExtraPropertyDelegate(this, property.name)
    
    
    private
    class NonNullExtraPropertyDelegate(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/TransformBackedProviderTest.groovy

            property.set("12")
            return property
        }
    
        Property<String> propertyWithCompletedProducer() {
            def task = Mock(Task)
            def state = Mock(TaskState)
            _ * task.toString() >> "<task>"
            _ * task.state >> state
            _ * state.executed >> true
            def owner = Stub(ModelObject)
            _ * owner.taskThatOwnsThisObject >> task
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:06:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskPropertiesIntegrationTest.groovy

                tasks.create("thing", MyTask) {
                    println("property = \$count")
                    count = 12
                }
            """
    
            when:
            succeeds("thing")
    
            then:
            outputContains("property = task ':thing' property 'count'")
            outputContains("count = 12")
        }
    
        def "reports failure to query managed Property<T> with no value"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInStaticGroovyIntegrationTest.groovy

            "System.properties['some.property']"                   | _
            "System.getProperties().get('some.property')"          | _
            "getProperties().get('some.property')"                 | _
            "System.getProperty('some.property')"                  | _
            "getProperty('some.property')"                         | _
            "System.getProperty('some.property', 'default.value')" | _
            "getProperty('some.property', 'default.value')"        | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/CheckstyleActionParameters.java

    import org.gradle.api.provider.MapProperty;
    import org.gradle.api.provider.Property;
    
    public interface CheckstyleActionParameters extends AntWorkParameters {
        RegularFileProperty getConfig();
    
        ConfigurableFileCollection getSource();
    
        Property<Integer> getMaxErrors();
    
        Property<Integer> getMaxWarnings();
    
        Property<Boolean> getIgnoreFailures();
    
        DirectoryProperty getConfigDirectory();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInJavaIntegrationTest.groovy

            "System.getProperties().get(\"some.property\")"            | _
            "System.getProperty(\"some.property\")"                    | _
            "System.getProperty(\"some.property\", \"default.value\")" | _
            "System.setProperty(\"some.property\", \"new.value\")"     | _
            "System.clearProperty(\"some.property\")"                  | _
        }
    
        def "setProperties is instrumented in Java"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/admin/searchlist/admin_searchlist_edit.jsp

                <la:form action="/admin/searchlist/">
                    <la:hidden property="crudMode"/>
                    <la:hidden property="q"/>
                    <c:if test="${crudMode==2}">
                        <la:hidden property="id"/>
                        <la:hidden property="seqNo"/>
                        <la:hidden property="primaryTerm"/>
                    </c:if>
                    <div class="row">
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 24.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/JavaPropertyReflectionUtil.java

            if (getterMethod == null) {
                throw new NoSuchPropertyException(String.format("Could not find getter method for property '%s' on class %s.", property, target.getSimpleName()));
            }
            return new GetterMethodBackedPropertyAccessor<T, F>(property, returnType, getterMethod);
        }
    
        /**
         * Locates the property with the given name as a readable property. Searches only public properties.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsIntegrationTest.groovy

            when:
            configurationCacheRun("-Dsome.property.1=1", "-Dsome.property.2=2", "print")
    
            then:
            configurationCache.assertStateStored()
            outputContains("Configuration: some.property.1 = 0")
            outputContains("Configuration: some.property.2 = 2")
    
            when:
            configurationCacheRun("-Dsome.property.1=-1", "-Dsome.property.2=2", "print")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 36K bytes
    - Viewed (0)
Back to top