Bug#1039607: libjansi-java: causes maven to always output escape character
tony mancill
tmancill at debian.org
Sat Jul 8 19:22:56 BST 2023
On Tue, Jun 27, 2023 at 07:49:19PM +0100, Luís Picciochi Oliveira wrote:
> mvn --batch-mode --quiet | less
>
>
> * With libjansi-java 2.4.0-2, escape characters are seen in the output, like
> so:
>
> ESC[0m[INFO] Scanning for projects...
Hi Luís,
Thank you for the bug report. I don't know the full story of why the
change in behavior between 2.4.0-1 and 2.4.0-2, but I
agree that escape sequences shouldn't be sent when maven is running
in batch mode and that we should address the question of colorized
output referenced in that commit [1] another way.
Emmanuel, do you recall what prompted the change? I didn't see a bug,
but can propose adding a new switch to generate colorized output even
when a TTY isn't detected. That will maintain the expected behavior
with --batch-mode, and we can adjust our build tooling to pass the new
switch if we really think we need it.
Thank you,
tony
[1] https://salsa.debian.org/java-team/jansi/-/commit/7f186cd4fc22308d7769db8eeeca26b560b81b1a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20230708/b8654e26/attachment.sig>
More information about the pkg-java-maintainers
mailing list