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
Implement colored output support for Tooling API and fix GRADLE-2687 (disable output to System.out/System.err when using Tooling API) #340
Conversation
I'll rebase the commits on top of master. They are currently off REL-2.1 . I've tagged this as https://github.com/lhotari/gradle/commits/ansi_support_REL_2.1 and will soon push the rebased commits. |
The PR is now rebased on top of master. |
Hey Lari, |
@breskeby I signed the CLA yesterday. |
I reverted your changed to GradleConnector for the moment and integrated the rest. Adam will probably comment and request some additional changes (test coverage). Thanks for the contribution. This is going to be part of 2.3 (sorry I didn't merge into 2.2). |
Adam may also want to revert the use of a system property for Gradle configuration. He's not overly fond of that sort of thing - is that strictly required, or would there be another way to achieve the same thing? |
I believe it is possible to revert that part and the goal is still achieved. On Tue, Oct 14, 2014 at 10:34 PM, Daz DeBoer notifications@github.com
|
I forgot to update this (not sure why GitHub did not do it automatically). It is merged it into master that will eventually become 2.3 though I did some changes there. The main thing for me - disabling stdout/stderr - is still not completed. IIRC there are few logging entries sent to the default streams before the daemon redirects the output to passed streams. Also it seems that the addition to GradleConnector wasn't really used. Would you mind to try our nightly builds and we can discuss next steps then? |
Thanks for the update @radimk . I'll try the nightly build tomorrow. |
@lhotari in all of those cases, those system properties are internal feature toggles and not expected to be used by Gradle users. |
@radimk We are now using a 2.3 nightly snapshot in Grails 3 development (grails-core master branch). This is the output that gets printed when a connector is created and connected:
output when running compileGroovy task
There are the extra connector logging statements. What are the next steps? |
This PR includes 3 different changes:
This PR is incomplete and lacks tests. Please provide guidance about how to continue. You are free to take over anything in this PR.
I'd just like to help getting these features to a stable Gradle version ASAP, since we'd like to use these features in the Grails 3 Gradle integration (uses Tooling API).
I'm a total newbie to Gradle source code, so my changes might be the wrong way to solve the problem.
However I tested manually that I got colored output from the Tooling API after these changes.
Regards,
Lari from the Grails team