Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for setStandardOutput (0.31 sec)

  1. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseSynchronizationTasksCrossVersionSpec.groovy

                connection.action().projectsLoaded(new TellGradleToRunSyncTasks(), projectsLoadedHandler)
                    .buildFinished(new LoadEclipseModel(), buildFinishedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            then:
            taskExecuted(out, ":foo")
        }
    
        def "can use task reference in sync task list"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseAutoBuildTasksCrossVersionSpec.groovy

            when:
            withConnection { connection ->
                connection.action().projectsLoaded(new TellGradleToRunAutoBuildTasks(), projectsLoadedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            then:
            taskExecuted(out, ":foo")
        }
    
        def "can use task reference in sync task list"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r41/BuildListenerCrossVersionSpec.groovy

            when:
            withConnection {
                ProjectConnection connection ->
                    connection.model(GradleProject)
                        .setStandardOutput(output)
                        .get()
            }
    
            then:
            listenersWereCalled()
        }
    
        def "build listeners are called when using configure-on-demand with build actions"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildEnvironmentCrossVersionSpec.groovy

            when:
            ByteArrayOutputStream out = new ByteArrayOutputStream()
            withConnection { ProjectConnection connection ->
                connection.newBuild().setEnvironmentVariables(["var": "val"]).setStandardOutput(out).forTasks('printEnv').run()
            }
    
            then:
            out.toString().contains("<${["var": "val"]}>")
        }
    
        @TargetGradleVersion(">=4.11")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/DelegatingBaseExecSpec.java

        }
    
        @Override
        default InputStream getStandardInput() {
            return getDelegate().getStandardInput();
        }
    
        @Override
        default BaseExecSpec setStandardOutput(OutputStream outputStream) {
            getDelegate().setStandardOutput(outputStream);
            return this;
        }
    
        @Override
        default OutputStream getStandardOutput() {
            return getDelegate().getStandardOutput();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/toolingApi/runBuild/kotlin/src/main/java/org/gradle/sample/Main.java

            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
                connection.close();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/toolingApi/runBuild/groovy/src/main/java/org/gradle/sample/Main.java

            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
                connection.close();
            }
    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. subprojects/core/src/main/java/org/gradle/process/internal/DefaultJavaExecSpec.java

        }
    
        @Override
        public OutputStream getStandardOutput() {
            return streamsSpec.getStandardOutput();
        }
    
        @Override
        public JavaExecSpec setStandardOutput(OutputStream standardOutput) {
            streamsSpec.setStandardOutput(standardOutput);
            return this;
        }
    
        @Override
        public OutputStream getErrorOutput() {
            return streamsSpec.getErrorOutput();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 27 09:47:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/RunTasksBeforeRunActionCrossVersion.groovy

        def "can run tasks"() {
            when:
            def stdOut = new ByteArrayOutputStream()
            withConnection {
                it.action(new SimpleAction())
                    .forTasks("hello", "bye")
                    .setStandardOutput(stdOut)
                    .run()
            }
    
            then:
            assert stdOut.toString().contains("hello")
            assert stdOut.toString().contains("bye")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/xcode/AbstractLocator.java

                    if (developerDir != null) {
                        execAction.environment("DEVELOPER_DIR", developerDir);
                    }
                    execAction.setStandardOutput(outputStream);
                    execAction.execute().assertNormalExitValue();
    
                    cachedLocation = new File(outputStream.toString().replace("\n", ""));
                }
                return cachedLocation;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top