Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 94 for HelloWorld (0.35 sec)

  1. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/MultipleNativeToolChainIntegrationTest.groovy

    import org.junit.Assume
    
    @RequiresInstalledToolChain
    class MultipleNativeToolChainIntegrationTest extends AbstractIntegrationSpec {
        def helloWorld = new CppCompilerDetectingTestApp()
    
        def setup() {
            buildFile << """
    plugins { id 'cpp' }
    """
    
            helloWorld.writeSources(file("src/main"))
        }
    
        @Requires(UnitTestPreconditions.CanInstallExecutable)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionQuickstart/kotlin/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

                    id 'org.gradle.sample.helloworld'
                }
            """
    
            when:
            def result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments('helloWorld')
                .withPluginClasspath()
                .build()
    
            then:
            result.output.contains('Hello world!')
            result.task(":helloWorld").outcome == SUCCESS
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testKit/gradleVersion/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

            buildFile << """
                task helloWorld {
                    doLast {
                        logger.quiet 'Hello world!'
                    }
                }
            """
            settingsFile << ""
    
            when:
            def result = GradleRunner.create()
                .withGradleVersion(gradleVersion)
                .withProjectDir(testProjectDir)
                .withArguments('helloWorld')
                .build()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testKit/spockQuickstart/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

            buildFile << """
                task helloWorld {
                    doLast {
                        println 'Hello world!'
                    }
                }
            """
    
            when:
            def result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments('helloWorld')
                .build()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCHelloWorldApp.groovy

                #include "common.h"
    
                @implementation Greeter
                - (void) sayHello {
                    NSString *helloWorld = @"${HELLO_WORLD}";
                    #ifdef FRENCH
                    helloWorld = @"${HELLO_WORLD_FRENCH}";
                    #endif
                    fprintf(stdout, "%s\\n", [helloWorld UTF8String]);
                }
                @end
            """),
                    sourceFile("objc", "sum.m", """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleGradleBuildGroupedTaskFunctionalTest.groovy

            then:
            result.groupedOutput.task(':helloWorld').output == HELLO_WORLD_MESSAGE
            result.groupedOutput.task(":external:important").output == IMPORTANT_MESSAGE
            result.groupedOutput.task(':byeWorld').output == BYE_WORLD_MESSAGE
        }
    
        static String mainBuildScript(String externalBuildConfig) {
            """
                task helloWorld {
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/DeployedPortalIntegrationSpec.groovy

            """
    
            then:
            succeeds("customHello")
    
            and:
            output.contains("Hello World!")
    
            and:
            fails("helloWorld")
        }
    
        def "Can apply plugins to subprojects"() {
            when:
            createDirs("sub")
            settingsFile << """
                include 'sub'
            """
            buildScript """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/objective-c/groovy/src/main/objc/greeter.m

    #import "greeter.h"
    
    @implementation Greeter
    
    - (void) sayHello {
        NSString *helloWorld = @"Hello world!";
        fprintf(stdout, "%s\n", [helloWorld UTF8String]);
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 172 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/objective-cpp/groovy/src/main/objcpp/greeter.mm

    #import <iostream>
    #import "greeter.h"
    
    @implementation Greeter
    
    - (void) sayHello {
        NSString *helloWorld = @"Hello world!";
        std::cout << [helloWorld UTF8String] << std::endl;
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 192 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/testKit/junitQuickstart/kotlin/src/test/java/org/gradle/sample/BuildLogicFunctionalTest.java

            BuildResult result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments("helloWorld")
                .build();
    
            assertTrue(result.getOutput().contains("Hello world!"));
            assertEquals(SUCCESS, result.task(":helloWorld").getOutcome());
        }
    
        private void writeFile(File destination, String content) throws IOException {
            BufferedWriter output = null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top