- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for inputValue (0.16 sec)
-
platforms/documentation/docs/src/snippets/tutorial/environmentVariables/kotlin/build.gradle.kts
// end::configuration[] abstract class PrintValue : DefaultTask() { @get:Input abstract val inputValue: Property<String> @TaskAction fun action() { println(inputValue.get()) } } // tag::execution[] tasks.register<PrintValue>("printValue") { // Using the Gradle API, provides a lazy Provider<String> wired to a task input inputValue = providers.environmentVariable("ENVIRONMENTAL") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 629 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/gradleProperties/kotlin/build.gradle.kts
abstract class PrintValue : DefaultTask() { @get:Input abstract val inputValue: Property<String> @TaskAction fun action() { println(inputValue.get()) } } // tag::gradle-properties-task-inputs[] tasks.register<PrintValue>("printProperty") { // Using the API, provides a lazy Provider<String> wired to a task input inputValue = providers.gradleProperty("gradlePropertiesProp") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 731 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/systemProperties/groovy/build.gradle
@Input abstract Property<String> getInputValue() @TaskAction void action() { println(inputValue.get()) } } // tag::system-properties-task-inputs[] tasks.register('printProperty', PrintValue) { // Using the Gradle API, provides a lazy Provider<String> wired to a task input inputValue = providers.systemProperty('system') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 652 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/systemProperties/kotlin/build.gradle.kts
abstract class PrintValue : DefaultTask() { @get:Input abstract val inputValue: Property<String> @TaskAction fun action() { println(inputValue.get()) } } // tag::system-properties-task-inputs[] tasks.register<PrintValue>("printProperty") { // Using the Gradle API, provides a lazy Provider<String> wired to a task input inputValue = providers.systemProperty("system") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 653 bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyAssignmentIntegrationTest.groovy
def inputDeclaration = "$inputType input" groovyBuildFile(inputDeclaration, inputValue, "=") expect: runAndAssert("myTask", expectedResult) where: description | inputType | inputValue | expectedResult
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 28 14:39:49 UTC 2023 - 36.6K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/InputPropertyAnnotationOverrideIntegrationTest.groovy
} class CustomTask extends InternalBaseTask { @${inputType.name} def input } custom { def layout = project.layout input = ${inputValue} } """ when: succeeds("custom") then: file("build/output").text == "done" result.assertTasksExecuted(":custom") when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 3.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTasks.java
} } public static class TaskWithInput extends TaskWithAction { String inputValue; @Inject public TaskWithInput(String inputValue) { this.inputValue = inputValue; } @Input public String getInputValue() { return inputValue; } } public static class TaskWithBooleanInput extends TaskWithAction {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 12 11:41:48 UTC 2022 - 15.8K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/projectProperties/kotlin/build.gradle.kts
// end::configuration[] abstract class PrintValue : DefaultTask() { @get:Input abstract val inputValue: Property<String> @TaskAction fun action() { println(inputValue.get()) } } // tag::execution[] tasks.register<PrintValue>("printValue") { // Eagerly accessing the value of a project property, set as a task input inputValue = project.property("myProjectProp").toString() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 918 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/environmentVariables/groovy/build.gradle
abstract class PrintValue extends DefaultTask { @Input abstract Property<String> getInputValue() @TaskAction void action() { println(inputValue.get()) } } // tag::execution[] tasks.register('printValue', PrintValue) { // Using the Gradle API, provides a lazy Provider<String> wired to a task input inputValue = providers.environmentVariable('ENVIRONMENTAL') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 627 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/gradleProperties/groovy/build.gradle
@Input abstract Property<String> getInputValue() @TaskAction void action() { println(inputValue.get()) } } // tag::gradle-properties-task-inputs[] tasks.register('printProperty', PrintValue) { // Using the API, provides a lazy Provider<String> wired to a task input inputValue = providers.gradleProperty('gradlePropertiesProp') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 796 bytes - Viewed (0)