Discussion:
'Plain' console output
Rob Fletcher
2012-09-22 07:21:27 UTC
Permalink
Hi

Is there a way to tell Gradle to generate plain console output? I'm running a build on Travis CI and due to the limitations of Travis's logging it's very hard to see the wood for the trees. For example: http://travis-ci.org/#!/robfletcher/betamax/builds/2527439 I have a couple of failing tests there but it's pretty hard to pick them out from all the noise generated by the download & test running updates.

Thanks,
Rob
Luke Daley
2012-09-30 10:05:52 UTC
Permalink
Post by Rob Fletcher
Hi
Is there a way to tell Gradle to generate plain console output?
There's currently not.
Post by Rob Fletcher
I'm running a build on Travis CI and due to the limitations of Travis's logging it's very hard to see the wood for the trees. For example: http://travis-ci.org/#!/robfletcher/betamax/builds/2527439 I have a couple of failing tests there but it's pretty hard to pick them out from all the noise generated by the download & test running updates.
Can you add some trace to your build to report on what the value of the TERM env var is please.
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
Rob Fletcher
2012-10-01 09:51:27 UTC
Permalink
It reports $TERM as just `xterm`
--
Rob Fletcher
Post by Luke Daley
Post by Rob Fletcher
Hi
Is there a way to tell Gradle to generate plain console output?
There's currently not.
Post by Rob Fletcher
I'm running a build on Travis CI and due to the limitations of Travis's logging it's very hard to see the wood for the trees. For example: http://travis-ci.org/#!/robfletcher/betamax/builds/2527439 I have a couple of failing tests there but it's pretty hard to pick them out from all the noise generated by the download & test running updates.
Can you add some trace to your build to report on what the value of the TERM env var is please.
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Luke Daley
2012-10-23 15:32:07 UTC
Permalink
@Adam: any idea on what's going on here?

Is Travis wrong to advertise this as the TERM?
Post by Rob Fletcher
It reports $TERM as just `xterm`
--
Rob Fletcher
Post by Luke Daley
Post by Rob Fletcher
Hi
Is there a way to tell Gradle to generate plain console output?
There's currently not.
Post by Rob Fletcher
I'm running a build on Travis CI and due to the limitations of Travis's logging it's very hard to see the wood for the trees. For example: http://travis-ci.org/#!/robfletcher/betamax/builds/2527439 I have a couple of failing tests there but it's pretty hard to pick them out from all the noise generated by the download & test running updates.
Can you add some trace to your build to report on what the value of the TERM env var is please.
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
Adam Murdoch
2012-10-23 20:23:06 UTC
Permalink
Post by Luke Daley
@Adam: any idea on what's going on here?
Is Travis wrong to advertise this as the TERM?
Maybe. Or our terminal detection is broken.

@Rob, can you add some trace to your build script to see if java.io.Console is available, to see if Java thinks the process is attached to a terminal? You might also try using a recent nightly build, as we made some changes to the terminal detection.
Post by Luke Daley
Post by Rob Fletcher
It reports $TERM as just `xterm`
--
Rob Fletcher
Post by Luke Daley
Post by Rob Fletcher
Hi
Is there a way to tell Gradle to generate plain console output?
There's currently not.
Post by Rob Fletcher
I'm running a build on Travis CI and due to the limitations of Travis's logging it's very hard to see the wood for the trees. For example: http://travis-ci.org/#!/robfletcher/betamax/builds/2527439 I have a couple of failing tests there but it's pretty hard to pick them out from all the noise generated by the download & test running updates.
Can you add some trace to your build to report on what the value of the TERM env var is please.
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
mmartynas
2013-06-29 20:40:10 UTC
Permalink
Hi,

I still get overwhelming flow of output messages when gradle is downloading
dependencies. I am using gradle 1.6.

I tried to check if System.console() returns something in java tests ran by
gradle and in java executables ran by travis. It seems that test code does
not see console but java code ran from travis does see console object.

You can find this test build output here:
https://travis-ci.org/2m/gradle-travis-test/builds/8579228





--
View this message in context: http://gradle.1045684.n5.nabble.com/Plain-console-output-tp5710237p5711442.html
Sent from the gradle-user mailing list archive at Nabble.com.
Luke Daley
2013-07-01 10:09:25 UTC
Permalink
Post by mmartynas
Hi,
I still get overwhelming flow of output messages when gradle is downloading
dependencies. I am using gradle 1.6.
I tried to check if System.console() returns something in java tests ran by
gradle and in java executables ran by travis. It seems that test code does
not see console but java code ran from travis does see console object.
https://travis-ci.org/2m/gradle-travis-test/builds/8579228
This is a bug with Travis. It's incorrectly declaring itself an ANSI capable terminal when it isn't.
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
Continue reading on narkive:
Loading...