Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 887 for setOut (0.06 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            PrintStream oldOut = System.out;
            System.setOut(new PrintStream(systemOut));
    
            // when
            try {
                cli.cli(cliRequest);
            } catch (MavenCli.ExitException exitException) {
                // expected
            } finally {
                // restore sysout
                System.setOut(oldOut);
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. istioctl/pkg/workload/workload_test.go

    		})
    	}
    }
    
    func verifyTestcaseOutput(t *testing.T, cmd *cobra.Command, c testcase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SetOut(&out)
    	cmd.SetErr(&out)
    	cmd.SilenceUsage = true
    	if c.namespace != "" {
    		namespace = c.namespace
    	}
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    	if c.expectedException {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

            }
    
            try {
                final PrintStream originalOutStream = System.out;
                final ByteArrayOutputStream outStream = new ByteArrayOutputStream();
                System.setOut(new PrintStream(outStream, true));
                final PrintStream originalErrStream = System.err;
                final ByteArrayOutputStream errStream = new ByteArrayOutputStream();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25K bytes
    - Viewed (0)
  4. istioctl/pkg/describe/describe_test.go

    		}
    	}
    
    	if c.configDumps == nil {
    		c.configDumps = map[string][]byte{}
    	}
    
    	var out bytes.Buffer
    	rootCmd := Cmd(ctx)
    	rootCmd.SetArgs(c.args)
    
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    
    	if c.namespace != "" {
    		describeNamespace = c.namespace
    	}
    
    	fErr := rootCmd.Execute()
    	output := out.String()
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  5. istioctl/pkg/validate/validate_test.go

    			})
    			validateCmd := NewValidateCommand(ctx)
    			validateCmd.SilenceUsage = true
    			validateCmd.SetArgs(c.args)
    
    			// capture output to keep test logs clean
    			var out bytes.Buffer
    			validateCmd.SetOut(&out)
    			validateCmd.SetErr(&out)
    
    			err := validateCmd.Execute()
    			if (err != nil) != c.wantError {
    				t.Errorf("unexpected validate return status: got %v want %v: \nerr=%v",
    					err != nil, c.wantError, err)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 02 16:18:14 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                    realms.add(realm.getId());
                }
            } else {
                realms = Collections.emptySet();
            }
    
            try {
                if (stdout != null) {
                    System.setOut(stdout);
                }
                if (stderr != null) {
                    System.setErr(stderr);
                }
    
                CliRequest cliRequest = new CliRequest(args, classWorld);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                stdout.setLogLevel(LocationAwareLogger.INFO_INT);
                stderr.setLogLevel(LocationAwareLogger.INFO_INT);
                System.setOut(new LoggingOutputStream(s -> stdout.info("[stdout] " + s)).printStream());
                System.setErr(new LoggingOutputStream(s -> stderr.warn("[stderr] " + s)).printStream());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  8. ci/official/utilities/setup.sh

    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    #
    # Common setup for all TF scripts.
    #
    # Make as FEW changes to this file as possible. It should not contain utility
    # functions (except for tfrun); use dedicated scripts instead and reference them
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Aug 07 23:01:25 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. ci/official/containers/ml_build/setup.packages.sh

    # limitations under the License.
    # ==============================================================================
    #
    # setup.packages.sh: Given a list of Ubuntu packages, install them and clean up.
    # Usage: setup.packages.sh <package_list.txt>
    set -e
    
    # Prevent apt install tzinfo from asking our location (assumes UTC)
    export DEBIAN_FRONTEND=noninteractive
    
    apt-get update
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Sep 24 20:45:58 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/setup.packages.sh

    # limitations under the License.
    # ==============================================================================
    #
    # setup.packages.sh: Given a list of Ubuntu packages, install them and clean up.
    # Usage: setup.packages.sh <package_list.txt>
    set -e
    
    # Prevent apt install tzinfo from asking our location (assumes UTC)
    export DEBIAN_FRONTEND=noninteractive
    
    apt-get update
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Sep 29 00:26:34 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top