gnodet commented on issue #1204: URL: https://github.com/apache/maven-mvnd/issues/1204#issuecomment-2489684444
The description is not correct. The actual problem is that the daemon is given an argument `-Dstyle.color=never` when stdout is redirected (or a log file is provided, or batch mode) else `-Dstyle.color=always`. However, the daemon does not act upon this property the second time it is invoked. The log of the daemon the second time looks like the following, where ` -Dstyle.color=never` is correctly sent to the daemon, but ansi sequences are sent nevertheless. ``` 23:41:09.889 I Request received: BuildRequest{args=[foo, -Dmaven.multiModuleProjectDirectory=/Users/gnodet/work/git/mvnd, -Dstyle.color=never, -T, 0.5C, -b, smart, -Dmvnd.terminalWidth=157], workingDir='/Users/gnodet/work/git/mvnd', projectDir='/Users/gnodet/work/git/mvnd', env='{HOMEBREW_PREFIX=/opt/homebrew, SDKMAN_CONSUMER_TOKEN=838ff7da982afa42454ba57d589027415251f67798795399ac0081e317d5d9be, SDKMAN_CANDIDATES_API=https://beta.sdkman.io/2, TERM_SESSION_ID=A292E821-19A4-4E82-8537-88D22443E684, SHLVL=1, INFOPATH=/opt/homebrew/share/info:, SHELL=/bin/zsh, __CFBundleIdentifier=com.apple.Terminal, TMPDIR=/var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/, ASF_PASSWORD=4uuhEy?x7&G, MVND_HOME=/Users/gnodet/.sdkman/candidates/mvnd/current, ZSH_SDKMAN_CANDIDATES_HOME=/Users/gnodet/.zsh-sdkman/candidates, ZSH=/Users/gnodet/.oh-my-zsh, JIRA_TOKEN=MzMyMDg3OTIyNTE0OkEzU5Oq1aGMblfZ0UL05Am7UCGE, ZSH_SDKMAN_CACHE=/Users/gnodet/.zsh-sdkman, HOME=/Users/gnodet, HOMEBREW_REPOSITORY=/opt/homebrew, SDKMAN_CONSUMER_KEY=29837f2f27fc887ad3e48390c2937e8f, PATH=/Users/gnodet/.jbang/bin:/Users/gnodet/bin:/Users/gnodet/.sdkman/candidates/sbt/current/bin:/Users/gnodet/.sdkman/candidates/mvnd/current/bin:/Users/gnodet/.sdkman/candidates/maven/current/bin:/Users/gnodet/.sdkman/candidates/java/22-graal/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/munki:/Users/gnodet/.local/bin:/opt/homebrew/bin:/Users/gnodet/.local/bin, LOGNAME=gnodet, TERM=xterm-256color, LS_COLORS=di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43, __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0, XPC_FLAGS=0x0, TERM_PROGRAM_VERSION=455, LC_CTYPE=UTF-8, JABBA_HOME=/Users/ gnodet/.jabba, TERM_PROGRAM=Apple_Terminal, JAVA_HOME=/Users/gnodet/.sdkman/candidates/java/22-graal, GITHUB_TOKEN=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, LESS=-R, LSCOLORS=Gxfxcxdxbxegedabagacad, SBT_HOME=/Users/gnodet/.sdkman/candidates/sbt/current, MAVEN_HOME=/Users/gnodet/.sdkman/candidates/maven/current, SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.b22MdySIgx/Listeners, ASF_LOGIN=gnodet, SDKMAN_DIR=/Users/gnodet/.sdkman, OLDPWD=/Users/gnodet/work/git/maven, SDKMAN_CANDIDATES_DIR=/Users/gnodet/.sdkman/candidates, XPC_SERVICE_NAME=0, PAGER=less, USER=gnodet, SDKMAN_PLATFORM=darwinarm64, HOMEBREW_CELLAR=/opt/homebrew/Cellar, MAVEN_CENTRAL=http://old-broken-macbook-pro.local:8082/artifactory/maven-remote/, MAVEN_OPTS=-DtrimStackTrace=false, PWD=/Users/gnodet/work/git/mvnd, _=/Users/gnodet/.sdkman/candidates/mvnd/current/bin/mvnd}'} 23:41:09.889 I Updating state to: Busy 23:41:09.890 I Executing request 23:41:09.938 I Dispatch message: BuildLogMessage{payload='[[34;1mINFO[0m] Processing build on daemon f3a2f665'} 23:41:09.939 I Dispatch message: BuildLogMessage{payload='[[34;1mINFO[0m] Daemon status dump:'} ``` -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org