Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 121 for HelloWorld (0.13 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/GradlePluginPortalDependencyResolveIntegrationTest.groovy

                        classpath("$pluginClasspathDependency")
                    }
                }
                apply plugin: "org.gradle.hello-world"
            """
    
            when:
            succeeds "helloWorld"
    
            then:
            outputContains("Hello World!")
        }
    
        def "project dependencies can be resolved from gradlePluginPortal()"() {
            given:
            buildFile << """
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerUnsupportedGradleVersionFailureIntegrationTest.groovy

        def "fails informatively when trying to use unsupported gradle version"() {
            given:
            buildFile << helloWorldTask()
    
            when:
            def result = runner('helloWorld')
                .withGradleVersion("1.1")
                .build()
    
            and:
            result.output
    
            then:
            def e = thrown UnsupportedFeatureException
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

          .addNetworkInterceptor(CHECK_HANDSHAKE_INTERCEPTOR)
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromSingleCustomPluginRepositorySpec.groovy

                }
            """
    
            and:
            useCustomRepository(PathType.ABSOLUTE)
    
            expect:
            fails("helloWorld")
            failure.assertHasDescription("Plugin [id: 'org.gradle.hello-world', version: '0.2'] was not found in any of the following sources:")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt

              // 1 MiB.
              maxSize = 10L * 1024L * 1024L,
            ),
          )
          .build()
    
      fun run() {
        val request =
          Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build()
    
        val response1Body =
          client.newCall(request).execute().use {
            if (!it.isSuccessful) throw IOException("Unexpected code $it")
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy

    }"""
        }
    
        def goodCodeUsingJavaInterface() {
            file("src/main/scala/compile/test/Demo.scala") << """
                package compile.test
    
                object Demo {
                  MyInterface.helloWorld();
                }
            """.stripIndent()
        }
    
    
        def goodJavaInterfaceCode() {
            file("src/main/java/compile/test/MyInterface.java") << """
                package compile.test;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingWithPluginManagementSpec.groovy

                        }
                    }
                    repositories {
                        gradlePluginPortal()
                    }
                }
            """
    
            when:
            fails("helloWorld")
    
            then:
            failureDescriptionContains("could not resolve plugin artifact 'foo:bar:1.0'")
        }
    
        def "succeeds build for resolvable custom artifact"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryConfigurationIntegrationTest.groovy

            main(NativeExecutableSpec) {
                binaries.all {
                    cppCompiler.define 'ENABLE_GREETING'
                }
            }
        }
    }
    """
    
            and:
            file("src/main/cpp/helloworld.cpp") << """
                #include <iostream>
    
                int main () {
                  #ifdef ENABLE_GREETING
                  std::cout << "Hello!";
                  #endif
                  return 0;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecWithExecutableJarIntegrationTest.groovy

                        attributes('Main-Class': 'driver.Driver')
                    }
                }
            """
    
            when:
            succeeds taskName
    
            then:
            file("out.txt").text == """helloworld"""
    
            where:
            method                    | taskName
            'JavaExec task'           | 'runWithTask'
            'project.javaexec'        | 'runWithJavaExec'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/global_test.go

    	out, err = cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("could not read target: %v", err)
    	}
    	if bytes.Contains(out, []byte("scanInt")) {
    		t.Fatalf("scanf code not removed from helloworld")
    	}
    }
    
    // Make sure -S prints assembly code. See issue 14515.
    func TestDashS(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    
    	// Make a directory to work in.
    	dir := t.TempDir()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top