You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Mathieu Moloney (Jira)" <ji...@apache.org> on 2019/08/31 17:24:00 UTC
[jira] [Created] (NETBEANS-3047) AINSI colors not showing as of
maven 3.5
Mathieu Moloney created NETBEANS-3047:
-----------------------------------------
Summary: AINSI colors not showing as of maven 3.5
Key: NETBEANS-3047
URL: https://issues.apache.org/jira/browse/NETBEANS-3047
Project: NetBeans
Issue Type: Bug
Components: projects - Maven
Affects Versions: 11.1
Environment: Maven version after 3.5.0
Reporter: Mathieu Moloney
AINSI colors are not working in newer maven versions, they *do* work with the maven version shipped with netbeans.
The solution is to add the following maven options
MAVEN_OPTS=-Djansi.passthrough=true
Maven 3.5.0 integrated jansi into its core. Jansi tries to detect the terminal capability and if it doesn't think that the terminal support ANSI codes, it strips them out of the output.
+*Testcase:*+
String greenBold = "\033[32;1m";
String reset = "\033[0m";
System.out.println("before" + greenBold + " green " + reset + "after");
# If you run the above program against Maven 3.3.9, the word "green" will render using a green color inside the Netbeans output tab.
# If you run the same program against Maven 3.5.0, no colors will show up.
See old bug report : [https://netbeans.org/bugzilla/show_bug.cgi?id=270593]
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists