- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 242 for GREETING (0.12 sec)
-
platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr5_build_scripts.adoc
doLast { println("Hello from plugin 'com.tutorial.greeting'") } } } } ---- ===== As we can see, the `license` plugin, when applied, exposes a `greeting` task with a simple print statement. == Step 5. View Plugin Tasks When the `license` plugin is applied to the `app` project, the `greeting` task becomes available:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 29 17:16:27 UTC 2024 - 13.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/customPlugin/groovy/consumer/build.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 189 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/base/customExternalTask/groovy/task/src/main/groovy/org/gradle/GreetingTask.groovy
import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction import org.gradle.api.tasks.Input class GreetingTask extends DefaultTask { @Input String greeting = 'hello from GreetingTask' @TaskAction def greet() { println greeting }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 297 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/customPlugin/kotlin/consumer/build.gradle.kts
// tag::use-plugin[] plugins { id("org.example.greeting") version "1.0-SNAPSHOT" } // end::use-plugin[] tasks.register<org.example.GreetingTask>("greeting") { greeting = "howdy!"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 190 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/webApplication/quickstart/groovy/src/main/java/org/gradle/sample/Greeter.java
import org.apache.commons.io.IOUtils; public class Greeter { public String getGreeting() throws Exception { LogManager.getRootLogger().info("generating greeting."); InputStream greetingStr = getClass().getResourceAsStream("/greeting.txt"); try { return IOUtils.toString(greetingStr).trim(); } finally { greetingStr.close(); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 503 bytes - Viewed (0) -
platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/CppLibraryInitIntegrationTest.groovy
then: subprojectDir.file("src/main/cpp").assertHasDescendants(SAMPLE_LIB_CLASS) subprojectDir.file("src/main/public").assertHasDescendants("greeting.h") subprojectDir.file("src/test/cpp").assertHasDescendants(SAMPLE_LIB_TEST_CLASS) and: subprojectDir.file("src/main/public/greeting.h").text.contains("namespace greeting {")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 20:10:55 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/customPlugins/customPluginNoConvention/groovy/build.gradle
interface GreetingPluginExtension { Property<String> getMessage() } class GreetingPlugin implements Plugin<Project> { void apply(Project project) { // Add the 'greeting' extension object def extension = project.extensions.create('greeting', GreetingPluginExtension) // Add a task that uses configuration from the extension object project.task('hello') { doLast {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 14 22:56:31 UTC 2024 - 590 bytes - Viewed (0) -
platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/AbstractFileSystemWatchingIntegrationTest.groovy
} static String sourceFileWithGreeting(String greeting) { """ public class Main { public static void main(String... args) { System.out.println("$greeting"); } } """ } static String taskWithGreeting(String greeting) { """ import org.gradle.api.*;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:38:01 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/greeting/groovy/buildSrc/src/main/groovy/greetings.gradle
Property<String> getMessage() } // end::extension[] // Add the 'greeting' extension object to project def extension = project.extensions.create("greeting", GreetingPluginExtension) // end::create-extension[] // Set a default value for 'message' extension.message.convention("Hello from Gradle") // end::convention[] // Create a greeting task abstract class GreetingTask extends DefaultTask { @Input
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 18:30:04 UTC 2024 - 1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/greeting/kotlin/buildSrc/src/main/kotlin/greetings.gradle.kts
val message: Property<String> } // end::extension[] // Add the 'greeting' extension object to project val extension = project.extensions.create<GreetingPluginExtension>("greeting") // end::create-extension[] // Set a default value for 'message' extension.message.convention("Hello from Gradle") // end::convention[] // Create a greeting task abstract class GreetingTask : DefaultTask() { @Input
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 18:30:04 UTC 2024 - 1.1K bytes - Viewed (0)