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 progress reported when used inside a gradle build script #20

Open
rrajen opened this issue Jul 27, 2017 · 1 comment
Open

No progress reported when used inside a gradle build script #20

rrajen opened this issue Jul 27, 2017 · 1 comment

Comments

@rrajen
Copy link

rrajen commented Jul 27, 2017

Progressbar works perfectly well when used in a standalone groovy script. However, when that same script is used as part of a gradle build.gradle task then I see no output at all in the console (I tried running my script with and without the "-q" option, and got the same result). My task does what it is supposed to, but surely would be nice to see the ProgressBar showing where it is at. It is a long-running custom task, so having some sort of progress reporting would be great.

I am guessing that this has to do with how Gradle deals with the PrintStream output that ProgressBar is generating.

Thanks.

@ctongfei
Copy link
Owner

A recent commit changed System.err to new PrintStream(new FileOutputStream(FileDescriptor.err)). I don't use Gradle myself so I couldn't test, but it might have resolved this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants