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

Use log file to avoid output buffer deadlocking #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samsieber
Copy link

This would resolve issue #30.

This uses a ProcessBuilder API introduced in Java 7, but that shouldn't matter since gradle itself requires 7+.

This pull request allows one to optionally redirect the process output to a log file to avoid output buffer issues once the process has been started and the output stops being read. A different approach would be to have a background thread keep reading the output even after the process is ready, but that solution is limited to when the gradle process itself is still running, sort of defeating the purpose of the plugin.

@jterhune
Copy link

jterhune commented Jun 2, 2017

We burned a few hours troubleshooting issue #30 and would love this fix to be merged.

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

Successfully merging this pull request may close these issues.

2 participants