utafrali opened a new pull request, #11927:
URL: https://github.com/apache/maven/pull/11927

   On JDK 22+, `System.console()` returns a non-null Console even when stdout 
is redirected to a pipe or file. This caused Maven to select the color message 
scheme when output was piped.
   
   Uses `Console.isTerminal()` (JDK 22+) via reflection to correctly detect 
piped output. On JDK < 22, falls back to the previous `System.console() != 
null` check.
   
   Applied to both Maven 4 (LookupInvoker) and Maven 3 compat (MavenCli) code 
paths.
   
   Closes #11885


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to