Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for sayHello (0.09 sec)

  1. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/TaskReportTaskIntegrationTest.groovy

            settingsFile << "rootProject.name = '$projectName'"
    
            buildFile << """
    task sayHello {
        group = 'Build'
    
        doLast {
            println "Hello!"
        }
    }"""
    
            when:
            succeeds "tasks", "--types"
    
            then:
            output.contains("""
    Build tasks
    -----------
    sayHello (org.gradle.api.DefaultTask)""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 15:00:02 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/initialization/CalculateTaskGraphBuildOperationIntegrationTest.groovy

                package artifact.transform.sample.producer;
    
                public final class Producer {
    
                    public String sayHello(String name) {
                        return "Hello, " + name + "!";
                    }
                }
            """
            file('producer/build.gradle') << """
                apply plugin:'java-library'
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

                }
            """
            file('src/main/java/Text.java') << '''import org.apache.commons.lang3.StringUtils;
                public class Text {
                    public static String sayHello(String name) { return "Hello, " + StringUtils.capitalize(name); }
                }
            '''
            file('src/test/java/TextTest.java') << '''
                import org.junit.Test;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftApplicationIntegrationTest.groovy

            when:
            file("greeter/src/main/swift/greeter.swift").replace("sayHello", "sayAloha")
            then:
            fails ":app:compileDebugSwift"
            failure.assertHasErrorOutput("value of type 'Greeter' has no member 'sayHello'")
    
            when:
            file("app/src/main/swift/main.swift").replace("sayHello", "sayAloha")
            then:
            succeeds ":app:assemble"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:43:37 UTC 2024
    - 40.2K bytes
    - Viewed (0)
Back to top