Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for myproperty2 (0.18 sec)

  1. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r88/KotlinSettingsScriptModelCrossVersionSpec.groovy

                }
                plugins {
                    id("settings-plugin")
                }
    
                mySettingsExtension {
                    myProperty = 42
                }
    
                println(mySettingsExtension.myProperty)
            """)
    
            when:
            def accessorsClassPath = accessorsClassPathFor(settingsFileKts)
    
            then:
            !accessorsClassPath.isEmpty()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 13:31:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/SettingsSchemaAccessorsIntegrationTest.kt

                    gradle.rootProject {
                        tasks.register("ok") {
                            val myProperty = ext.myProperty
                            doLast { println("It's ${'$'}{myProperty.get()}!") }
                        }
                    }
                """
            )
            // and: a settings script that uses the plugin
            withDefaultSettings().appendText(
                """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/plugins/ExtensionAware.java

     *
     * // All extension aware objects have a special “ext” extension of type ExtraPropertiesExtension
     * assert project.hasProperty("myProperty") == false
     * project.ext.myProperty = "myValue"
     *
     * // Properties added to the “ext” extension are promoted to the owning object
     * assert project.myProperty == "myValue"
     * </pre>
     *
     * Many Gradle objects are extension aware. This includes; projects, tasks, configurations, dependencies etc.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Aug 26 07:18:37 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsAccessFromKotlinDslIntegrationTest.groovy

                include("a")
            """
            buildKotlinFile << """
                project.extensions.extraProperties["myProperty"] = "hello"
            """
    
            // Requires a sub-project
            file("a/build.gradle.kts") << """
                val myProperty: $type by project
                println("myProperty: " + myProperty) // actual access to the value is required to trigger a lookup
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/providers/services/kotlin/build.gradle.kts

    }
    
    // tag::object-factory[]
    tasks.register("myObjectFactoryTask") {
        doLast {
            val objectFactory = project.objects
            val myProperty = objectFactory.property(String::class)
            myProperty.set("Hello, Gradle!")
            println(myProperty.get())
        }
    }
    // end::object-factory[]
    
    // tag::object-factory-inject[]
    abstract class MyObjectFactoryTask
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/providers/services/groovy/build.gradle

        mavenCentral()
    }
    
    // tag::object-factory[]
    tasks.register("myObjectFactoryTask") {
        doLast {
            def objectFactory = project.objects
            def myProperty = objectFactory.property(String)
            myProperty.set("Hello, Gradle!")
            println myProperty.get()
        }
    }
    // end::object-factory[]
    
    // tag::object-factory-inject[]
    abstract class MyObjectFactoryTask extends DefaultTask {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. maven-model-builder/src/test/java/org/apache/maven/model/building/ComplexActivationTest.java

        }
    
        @Test
        void testAndConditionInActivation() throws Exception {
            Properties sysProperties = new Properties();
            sysProperties.setProperty("myproperty", "test");
    
            ModelBuilder builder = new DefaultModelBuilderFactory().newInstance();
            assertNotNull(builder);
    
            DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. analysis/analysis-api/testData/components/containingDeclarationProvider/containingDeclarationByPsi/localDeclarations.kt

        fun xFunction() = 11
        typealias xTypealias = 10
        class XClass<XT> {}
        enum class XEnum {
            X_ENUM_ENTRY;
    
            fun xEnumMember(){}
        }
    
        class Y <YT> {
            val yProperty = 10
            fun yFunction() = 11
            typealias yTypealias = 10
            class YClass<YTT> {}
            enum class YEnum {
                Y_ENUM_ENTRY;
    
                fun yEnumMember(){}
    
            }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 26 19:19:00 UTC 2022
    - 509 bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheInputListenerLifecycleIntegrationTest.groovy

                }
    
                def touchFsInEvaluation = provider {
                    file("test").exists() ? "yes" : "no"
                }
    
                tasks.register("myTask", MyTask.class) {
                    myProperty = touchFsInEvaluation
                    outputFile = project.layout.buildDirectory.file("out.txt")
                }
            """)
            if (isOptOut) {
                file("gradle.properties") << "$IGNORE_INPUTS_PROPERTY=true"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top