Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for setStandardOutput (0.22 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/CompositeProjectSubstitutionCrossVersionSpec.groovy

                    .buildFinished(new ParameterizedLoadCompositeEclipseModels(workspace, EclipseProject), buildFinishedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            def eclipseProjects = buildFinishedHandler.result
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/crossVersionTest/groovy/org/gradle/api/internal/tasks/compile/tooling/JavaCompileTaskOperationResultCrossVersionTest.groovy

        }
    
        private ProgressEvents runBuild(task) {
            ProgressEvents events = ProgressEvents.create()
            withConnection {
                newBuild()
                    .forTasks(task)
                    .setStandardOutput(System.out)
                    .addProgressListener(events, OperationType.TASK)
                    .run()
            }
            events
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/tasks/incrementalBuild-incrementalBuildAdvanced/kotlin/buildSrc/src/main/java/org/example/GitClone.java

            ExecResult result = getExecOperations().exec(spec -> {
                spec.commandLine("git", "remote", "get-url", "origin");
                spec.setIgnoreExitValue(true);
                spec.setStandardOutput(output);
                spec.setWorkingDir(directory);
            });
            String outputString = output.toString().trim();
            return result.getExitValue() == 0 && url.equals(outputString);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/CustomToolingModelCrossVersionSpec.groovy

        }
    
        private fetchCustomModelsWithRestrictedMemoryAction(ProjectConnection connection) {
            connection.action(new FetchProjectsCustomModelsAction())
                .setStandardError(stderr)
                .setStandardOutput(stdout)
                .setJvmArguments(["-Xmx256m"] + kotlinDslJvmArguments())
                .run()
        }
    
        private static List<String> kotlinDslJvmArguments() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r85/TestLauncherDebugCrossVersionTest.groovy

            withConnection { ProjectConnection connection ->
                def testLauncher = connection.newTestLauncher()
                    .withTaskAndTestClasses(':app:test', Arrays.asList('TestClass1'))
                    .setStandardOutput(stdout)
                if (debugMode) {
                    // JDWPUtil is flaky https://github.com/gradle/gradle/issues/26366
                    testLauncher.debugTestsOn(49052 + (retryCounter++))
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 29 08:00:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r60/ToolingApiPropertiesLoaderCrossVersionSpec.groovy

                project_property_available=true
            '''.stripIndent()
    
            TestOutputStream stdout = new TestOutputStream()
    
            when:
            withConnection { connection -> connection.newBuild().setStandardOutput(stdout).forTasks('hello').run() }
            String output = stdout.toString()
    
            then:
            output.contains('system_property_available in buildSrc:                 true')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/swift/metadata/SwiftcMetadataProviderTest.groovy

        }
    
        SearchResult<SwiftcMetadata> output(String output) {
            def action = Mock(ExecAction)
            def result = Mock(ExecResult)
            1 * execActionFactory.newExecAction() >> action
            1 * action.setStandardOutput(_) >> { OutputStream outstr -> outstr << output; action }
            1 * action.execute() >> result
            def provider = new SwiftcMetadataProvider(execActionFactory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. platforms/software/security/src/main/java/org/gradle/security/internal/gnupg/GnupgSignatory.java

            execOperations.exec(spec -> {
                    spec.setExecutable(executable);
                    spec.setArgs(arguments);
                    spec.setStandardInput(prepareStdin(input));
                    spec.setStandardOutput(output);
                }
            );
        }
    
        private InputStream prepareStdin(InputStream input) {
            if (passphrase != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. platforms/core-runtime/process-services/src/main/java/org/gradle/process/BaseExecSpec.java

         * after the process completes.
         *
         * @param outputStream The standard output stream for the process. Must not be null.
         * @return this
         */
        BaseExecSpec setStandardOutput(OutputStream outputStream);
    
        /**
         * Returns the output stream to consume standard output from the process executing the command. Defaults to {@code
         * System.out}.
         *
         * @return The output stream
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/sources/process/ProviderCompatibleBaseExecSpecTestBase.groovy

            then:
            thrown UnsupportedOperationException
        }
    
        def "setting output stream is forbidden"() {
            when:
            specUnderTest.setStandardOutput(new ByteArrayOutputStream())
            then:
            thrown UnsupportedOperationException
        }
    
        def "setting error stream is forbidden"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top