Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 142 for forTask (0.17 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r88/DaemonJvmCompatibilityCrossVersionSpec.groovy

            withConnection { connection ->
                connection.newBuild().forTasks('help').run()
            }
    
            file("gradle.properties").writeProperties("org.gradle.java.home": jdk17.javaHome.absolutePath)
            withConnection { connection ->
                connection.newBuild().forTasks('help').run()
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/BuildProgressCrossVersionSpec.groovy

            withConnection {
                ProjectConnection connection ->
                    connection.newBuild()
                            .addProgressListener(events)
                            .forTasks("build")
                            .run()
            }
    
            then:
            events.assertIsABuild()
    
            def compileJava = events.operation("Task :compileJava")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/dump/dump.go

    // The output may change over time, so for guaranteed output please take more direct control
    func Pretty(a interface{}) string {
    	return prettyPrintConfig.Sdump(a)
    }
    
    // ForHash keeps the original Spew.Sprintf format to ensure the same checksum
    func ForHash(a interface{}) string {
    	return prettyPrintConfigForHash.Sprintf("%#v", a)
    }
    
    // OneLine outputs the object in one line
    func OneLine(a interface{}) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/BuildLauncher.java

     *    .forProjectDirectory(new File("some-folder"))
     *    .connect();
     *
     * try {
     *    BuildLauncher build = connection.newBuild();
     *
     *    //select tasks to run:
     *    build.forTasks("clean", "test");
     *
     *    //include some build arguments:
     *    build.withArguments("-i", "--project-dir", "some-project-dir");
     *
     *    //configure the standard input:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. pkg/util/hash/hash.go

    // ensuring the hash does not change when a pointer changes.
    func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) {
    	hasher.Reset()
    	fmt.Fprintf(hasher, "%v", dump.ForHash(objectToWrite))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 998 bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r31/BuildActionCrossVersionSpec.groovy

            when:
            GradleTask task = withConnection { c -> c.action(new FetchTaskAction()).run() }
            task = withConnection { c -> c.action(new ReturnValueAction(task)).run() }
            withConnection { c -> c.newBuild().forTasks(task).run() }
    
            then:
            noExceptionThrown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/toolingApi/runBuild/kotlin/src/main/java/org/gradle/sample/Main.java

            ProjectConnection connection = connector.connect();
            try {
                // Configure the build
                BuildLauncher launcher = connection.newBuild();
                launcher.forTasks("help");
                launcher.setStandardOutput(System.out);
                launcher.setStandardError(System.err);
    
                // Run the build
                launcher.run();
            } finally {
                // Clean up
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/toolingApi/runBuild/groovy/src/main/java/org/gradle/sample/Main.java

            ProjectConnection connection = connector.connect();
            try {
                // Configure the build
                BuildLauncher launcher = connection.newBuild();
                launcher.forTasks("help");
                launcher.setStandardOutput(System.out);
                launcher.setStandardError(System.err);
    
                // Run the build
                launcher.run();
            } finally {
                // Clean up
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiPhasedBuildActionIntegrationTest.groovy

            def models = runPhasedBuildAction(new FetchPartialCustomModelForEachProject(), new FetchCustomModelForEachProject()) {
                // Empty list means "run tasks defined by build logic or default tasks"
                forTasks([])
            }
    
            then:
            def messages = models.left
            messages.size() == 2
            messages[0] == "It works from project :"
            messages[1] == "It works from project :a"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r72/JavaVersionCrossVersionTest.groovy

            when:
            toolingApi.withConnection { ProjectConnection connection ->
                connection.newBuild().forTasks('myTask').run()
            }
    
            then:
            GradleConnectionException e = thrown()
            def rootCause = Exceptions.getRootCause(e)
            rootCause instanceof RuntimeException
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top