bmarwell commented on pull request #415: URL: https://github.com/apache/maven/pull/415#issuecomment-751754398
> This looks OK, but incomplete. When if you at `org.apache.maven.cli.MavenCli.logging(CliRequest)` in the block marked with `// LOG COLOR` you see duplicate code now. It is probably time to move that code out of `logging()` into `cli()`. > > I wonder what will happen when one does the following: > > ``` > mvn -v -Dstyle.color=always | less -R > ``` > > I would expect to see colors here also stdout is not attached to a tty. I think we need to move the use property to a CLI option to make it more obvious. > > I am quite used to: `grep --color=always ... | less -R` Which one? This? https://github.com/apache/maven/blob/496b9bd65d0ddd0fb19c8c9f89058555f458790e/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L508-L522 I do not see this code duplicated somewhere else. There are other duplicated parts, however. ![2020-12-28T16:35:36_0001_screenshot](https://user-images.githubusercontent.com/1413391/103225713-dcfdb280-492a-11eb-8544-fced0e35043a.png) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org