Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Use log file to avoid output buffer deadlocking#31

Open
samsieber wants to merge 1 commit intomarc0der:masterfrom
samsieber:log-through-file
Open

Use log file to avoid output buffer deadlocking#31
samsieber wants to merge 1 commit intomarc0der:masterfrom
samsieber:log-through-file

Conversation

@samsieber
Copy link
Copy Markdown

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
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants