Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 207 for GREETING (0.12 sec)

  1. platforms/documentation/docs/src/snippets/plugins/customPlugin/groovy/consumer/build.gradle

    // tag::use-plugin[]
    plugins {
        id 'org.example.greeting' version '1.0-SNAPSHOT'
    }
    // end::use-plugin[]
    
    tasks.register('greeting', org.example.GreetingTask) {
        greeting = 'howdy!'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 189 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. platforms/documentation/docs/src/samples/build-organization/composite-builds/plugin-dev/groovy/my-greeting-app/build.gradle

    plugins {
        id 'org.sample.greeting' version '1.0-SNAPSHOT'
    }
    
    greeting {
        who = 'Bob'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 94 bytes
    - Viewed (0)
Back to top