Gradle Tooling API output to the console even with setStandardOutput defined

Hi,

Launching a very simple build with gradle tooling API with something like :

GradleConnector.newConnector()
    .forProjectDirectory(projectPath)
    .connect()
    .newBuild()
    .setStandardOutput(osO)
    .setStandardError(osE)
    .forTasks("foo")
    .run()

I was expecting to get all output in osO and OsE and no output in console. I tried with 1.12 and 2.0-rc2 tooling API

Please help me to shut up the console output.

1 Like