-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add property 'mvnd.preserveProjectLog' to not decorate the stdout/stderr stream #726
Conversation
6a64a21
to
0233a8c
Compare
Could you please explain what are the possible motivations for this change? In which situations does it help? Why would user want to have this? |
I must say I have hard time figuring out how this combines with I am also a bit lost how we handle the system streams in the daemon. @gnodet why do we cal |
@ppalaga this option is used to keep the logging behavior the same as the original maven: Expected from maven (no new-line char at the end): $ mvn -DforceStdout -q help:evaluate -Dexpression=project.version -l >(sed 's/^/in log: /')
in log: 1.0.0
$ mvnd -DforceStdout -q help:evaluate -Dexpression=project.version -l >(sed 's/^/in log: /')
in log: [INFO] [stdout] 1.0.0
$ mvnd -DforceStdout -q help:evaluate -Dexpression=project.version -l >(sed 's/^/in log: /') --raw-streams
1.0.0
$ mvnd -DforceStdout -q help:evaluate -Dexpression=project.version -l >(sed 's/^/in log: /') -Dmvnd.preserveProjectLog
in log: 1.0.0 |
Note that I have the following:
|
The problem is that mvnd implements the |
#779 is an attempt to fix the above problem. It now gives the correct result (apart the added terminal newline) |
@gnodet the nearly same behavior of |
Superseded by #779 |
With the new property set to
true
, the prefix[INFO] [stdout]
is removed in the client terminal output. Then without--raw-stream
, we can still get the same behavior with original maven.