gradle-execfork-plugin
gradle-execfork-plugin copied to clipboard
Fix logging behaviour
I encountered a bug where the output of the process was not shown on Windows in IntelliJ. The reason for this bug was, that the process is logging lines CRLF line endings. I changed the behaviour of the OutputStreamLogger-Class to handle CRLF, LF and CR line endings.
@psxpaul Did you have a chance to review this PR? I would love to have this bug fixed in my Gradle build.
Hi @hesch sorry for the long delay. I don't have a windows machine, so I can't duplicate the bug you're seeing in IntelliJ. I did have some concerns around this approach. The unit test implies that any ending \r character would get swallowed. And on Unix machines I wonder if this would replace all \r\n with just \n. That might be desirable for some people, but not others.