Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for printStream (0.11 sec)

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

            CliRequest cliRequest = new CliRequest(new String[] {"--version", "--batch-mode"}, null);
            ByteArrayOutputStream systemOut = new ByteArrayOutputStream();
            PrintStream oldOut = System.out;
            System.setOut(new PrintStream(systemOut));
    
            // when
            try {
                cli.cli(cliRequest);
            } catch (MavenCli.ExitException exitException) {
                // expected
    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. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.errorprone.annotations.Keep;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintStream;
    import java.io.PrintWriter;
    import java.io.Reader;
    import java.io.Serializable;
    import java.io.StringReader;
    import java.io.StringWriter;
    import java.io.Writer;
    import java.lang.reflect.AnnotatedElement;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.errorprone.annotations.Keep;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintStream;
    import java.io.PrintWriter;
    import java.io.Reader;
    import java.io.Serializable;
    import java.io.StringReader;
    import java.io.StringWriter;
    import java.io.Writer;
    import java.lang.reflect.AnnotatedElement;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        ArbitraryInstances.get(PrintStream.class).println("test");
        ArbitraryInstances.get(PrintWriter.class).println("test");
        assertNotNull(ArbitraryInstances.get(File.class));
        assertFreshInstanceReturned(
            ByteArrayOutputStream.class, OutputStream.class,
            Writer.class, StringWriter.class,
            PrintStream.class, PrintWriter.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

                }
                printWriter.accept(sb.toString());
            }
        }
    
        @Override
        public void displayHelp(ParserRequest request, Consumer<String> printStream) {
            cliManager.displayHelp(request.command(), printStream);
        }
    
        protected static class CLIManager {
            public static final String USER_PROPERTY = "D";
            public static final String SHOW_VERSION_AND_EXIT = "v";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.cli;
    
    import java.io.PrintStream;
    import java.io.PrintWriter;
    import java.util.LinkedHashSet;
    import java.util.Set;
    
    import org.apache.commons.cli.CommandLine;
    import org.apache.commons.cli.DefaultParser;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/Config.java

            prp.store( out, header );
        }
    
        /**
         * List the properties in the <code>Code</code>.
         */
    
        public static void list( PrintStream out ) throws IOException {
            prp.list( out );
        }
    
        /**
         * Add a property.
         */
    
        public static Object setProperty( String key, String value ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.3K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                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());
                // no need to set them back, this is already handled by MessageUtils.systemUninstall() above
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
Back to top