- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for setGreeting (0.26 sec)
-
platforms/documentation/docs/src/snippets/plugins/customPlugin/groovy/java-gradle-plugin/src/main/java/org/example/GreetingTask.java
import org.gradle.api.tasks.Input; public class GreetingTask extends DefaultTask { private String greeting = "hello from GreetingTask"; public void setGreeting(String greeting) { this.greeting = greeting; } @Input public String getGreeting() { return greeting; } @TaskAction public void greet() { System.out.println(greeting); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 493 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/customPlugin/kotlin/java-gradle-plugin/src/main/java/org/gradle/GreetingTask.java
import org.gradle.api.tasks.Input; public class GreetingTask extends DefaultTask { private String greeting = "hello from GreetingTask"; public void setGreeting(String greeting) { this.greeting = greeting; } @Input public String getGreeting() { return greeting; } @TaskAction public void greet() { System.out.println(greeting); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 493 bytes - Viewed (0) -
platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/App.java.template
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 26 19:39:09 UTC 2023 - 257 bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/sharing-convention-plugins-with-build-logic/kotlin/buildSrc/src/main/java/com/example/GreetingTask.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 395 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/providers/connectProperties/groovy/build.gradle
// A project extension interface MessageExtension { // A configurable greeting Property<String> getGreeting() } // A task that displays a greeting abstract class Greeting extends DefaultTask { // Configurable by the user @Input abstract Property<String> getGreeting() // Read-only property calculated from the greeting @Internal final Provider<String> message = greeting.map { it + ' from Gradle' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/sharing-convention-plugins-with-build-logic/groovy/buildSrc/src/main/java/com/example/GreetingTask.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 395 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/ear/earWithWar/kotlin/war/src/main/java/org/gradle/sample/SimpleGreeter.java
package org.gradle.sample; import org.apache.log4j.LogManager; public class SimpleGreeter { public String getGreeting() throws Exception { LogManager.getRootLogger().info("generating greeting."); return "Hello world!"; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 249 bytes - Viewed (0) -
platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/testng/AppTest.java.template
import org.testng.annotations.*; import static org.testng.Assert.*; public class AppTest { @Test public void appHasAGreeting() { App classUnderTest = new App(); assertNotNull(classUnderTest.getGreeting(), "app should have a greeting"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 26 19:39:09 UTC 2023 - 325 bytes - Viewed (0) -
testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/kotlin-example/src/main/kotlin/pkg/Main.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 79 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/ear/earWithWar/groovy/war/src/main/java/org/gradle/sample/SimpleGreeter.java
package org.gradle.sample; import org.apache.log4j.LogManager; public class SimpleGreeter { public String getGreeting() throws Exception { LogManager.getRootLogger().info("generating greeting."); return "Hello world!"; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 249 bytes - Viewed (0)