Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setColorEnabled (0.14 sec)

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

            CliRequest request;
    
            MessageUtils.setColorEnabled(true);
            request = new CliRequest(new String[] {"-B"}, null);
            cli.cli(request);
            cli.properties(request);
            cli.logging(request);
            assertFalse(MessageUtils.isColorEnabled());
    
            MessageUtils.setColorEnabled(true);
            request = new CliRequest(new String[] {"--non-interactive"}, null);
    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. compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java

        private JLineMessageBuilderFactory messageBuilderFactory = new JLineMessageBuilderFactory();
    
        @BeforeAll
        static void setUp() {
            MessageUtils.setColorEnabled(false);
        }
    
        @AfterAll
        static void tearDown() {
            MessageUtils.setColorEnabled(true);
        }
    
        @BeforeEach
        void beforeEach() {
            logger = mock(Logger.class);
            when(logger.isInfoEnabled()).thenReturn(true);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            if ("always".equals(styleColor) || "yes".equals(styleColor) || "force".equals(styleColor)) {
                MessageUtils.setColorEnabled(true);
            } else if ("never".equals(styleColor) || "no".equals(styleColor) || "none".equals(styleColor)) {
                MessageUtils.setColorEnabled(false);
            } else if (!"auto".equals(styleColor) && !"tty".equals(styleColor) && !"if-tty".equals(styleColor)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            context.closeables.add(MessageUtils::systemUninstall);
            MessageUtils.registerShutdownHook(); // safety belt
            if (context.coloredOutput != null) {
                MessageUtils.setColorEnabled(context.coloredOutput);
            }
        }
    
        protected Terminal createTerminal(C context) {
            MessageUtils.systemInstall(
                    builder -> {
                        builder.streams(
    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