Skip to content
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

No verbose output when fork option is used #20

Closed
Tunaki opened this issue Apr 22, 2016 · 0 comments
Closed

No verbose output when fork option is used #20

Tunaki opened this issue Apr 22, 2016 · 0 comments

Comments

@Tunaki
Copy link
Contributor

Tunaki commented Apr 22, 2016

This is triggered by the Stack Overflow question No verbose output when fork option is used for maven-compiler-plugin.

The JavacCompiler is ignoring the standard output of the javac executable (thus ignoring the verbose configuration) when used in forked mode.

This is because in the method compileOutOfProcess, the CommandLineUtils.StringStreamConsumer out variable populated with the standard output is ignored when populating the resulting messages:

returnCode = CommandLineUtils.executeCommandLine( cli, out, err );

messages = parseModernStream( returnCode, new BufferedReader( new StringReader( err.getOutput() ) ) );

As suggested fix, the parseModernStream method should take both the result of the error output and standard output.

Tunaki added a commit to Tunaki/plexus-compiler that referenced this issue Apr 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant