Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for sayHello (0.1 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAlternateMain.groovy

        }
    
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "main.swift", """
                public func main() -> Int {
                  let greeter = Greeter()
                  greeter.sayHello()
                  return 0
                }
    
                _ = main()
            """)
        }
    
        @Override
        String getExpectedOutput() {
            return greeter.expectedOutput
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterUsesLogger.groovy

        SourceFile getSourceFile() {
            return sourceFile("swift", "greeter.swift", """
                import Log            
                public class Greeter {
                    public init() { }
                    public func sayHello() {
                        log("${HelloWorldApp.HELLO_WORLD}")
                    }
                }
            """)
        }
    
        @Override
        String getExpectedOutput() {
            return "${HelloWorldApp.HELLO_WORLD}\n"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterUsingCppFunction.groovy

        SourceFile getSourceFile() {
            sourceFile("swift", "greeter.swift", """
                import ${moduleName}
    
                public class Greeter {
                    public init() {}
                    public func sayHello() {
                        sayGreeting()
                    }
                }
            """)
        }
    
        @Override
        String getExpectedOutput() {
            return cppGreeter.expectedOutput
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterWithOptionalFeature.groovy

        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "greeter.swift", """
                public class Greeter {
                    public init() {}
                    public func sayHello() {
    #if WITH_FEATURE
                        print("${HelloWorldApp.HELLO_WORLD_FRENCH}")
    #else
                        print("${HelloWorldApp.HELLO_WORLD}")
    #endif
                    }
                }
            """)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftMain.groovy

        }
    
        SourceFile sourceFile = new SourceFile("swift", "main.swift", """
                // Simple hello world app
                func main() -> Int {
                  let greeter = Greeter()
                  greeter.sayHello()
                  print(sum(a: 5, b: 7), terminator: "")
                  return 0
                }
    
                _ = main()
            """)
    
        @Override
        String getExpectedOutput() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. subprojects/core/src/testInterceptors/java/org/gradle/internal/classpath/InheritedMethodTestReceiver.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.classpath;
    
    public class InheritedMethodTestReceiver {
    
        public String sayHello() {
            return "Hello";
        }
    
        public static class A extends InheritedMethodTestReceiver {
        }
    
        public static class B extends A {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 23 08:15:56 UTC 2023
    - 880 bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithDiamondDependencyHelloWorldApp.groovy

                    #endif
                }
    
                int main () {
                    std::cout << getExeHello() << " ";
                    std::cout << getHello() << " ";
                    sayHello();
                    return 0;
                }
            """)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAlternateGreeter.groovy

        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "greeter.swift", """
                public class Greeter {
                    public init() {}
                    public func sayHello() {
                        print("[${HelloWorldApp.HELLO_WORLD} - ${HelloWorldApp.HELLO_WORLD_FRENCH}]")
                    }
                }
    
                // Extra function to ensure library has different size
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. subprojects/core/src/testInterceptors/java/org/gradle/internal/classpath/InheritedMethodsInterceptionTestInterceptorsDeclaration.java

        @InterceptCalls
        @InterceptInherited
        @CallableKind.InstanceMethod
        public static String intercept_sayHello(@ParameterKind.Receiver InheritedMethodTestReceiver self) {
            return self.sayHello() + " from: " + self.getClass().getName().replace(self.getClass().getPackage().getName() + ".", "");
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 23 08:15:56 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. 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)
Back to top