Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #126 from eclipse/master
Browse files Browse the repository at this point in the history
Print errors to standard error if flag set
  • Loading branch information
enxio authored Apr 22, 2021
2 parents c86d77a + ba5afc0 commit 96804d1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static void main(String[] args) {
final String HTTP_PROXY_PORT = System.getenv("HTTP_PROXY_PORT");
final String HTTP_PROXY_USERNAME = System.getenv("HTTP_PROXY_USERNAME");
final String HTTP_PROXY_PASSWORD = System.getenv("HTTP_PROXY_PASSWORD");
final boolean LEMMINX_DEBUG = System.getenv("LEMMINX_DEBUG") != null;

if (HTTP_PROXY_HOST != null && HTTP_PROXY_PORT != null) {
System.setProperty("http.proxyHost", HTTP_PROXY_HOST);
Expand Down Expand Up @@ -70,7 +71,9 @@ protected PasswordAuthentication getPasswordAuthentication() {
PrintStream out = System.out;
System.setIn(new NoOpInputStream());
System.setOut(new NoOpPrintStream());
System.setErr(new NoOpPrintStream());
if (!LEMMINX_DEBUG) {
System.setErr(new NoOpPrintStream());
}
launch(in, out);
}

Expand Down

0 comments on commit 96804d1

Please sign in to comment.