Marcos
Marcos

Reputation: 103

Gradle Cargo Plugin, not logging in Eclipse Console

I have this configuration in my build

local {
      homeDir = file('/opt/tomcat')
      outputFile = file('build/output.log')
      timeout = 60000
      containerProperties {
         property 'cargo.tomcat.ajp.port', 9099
      }
}

But when I remove "outputFile" logging does not appear in Eclipse Console. What can I do?

Upvotes: 4

Views: 977

Answers (2)

Pablo
Pablo

Reputation: 2658

If you are working with STS Gradle Plugin, you have two alternatives:

  1. Go to Window >> Preferences and set -i argument as follows:

Alternative 1

  1. Or you can set it directly by Gradle Task UI:

Right click on your project, then select Run As >> Gradle Build.. and you must to do this: Alternative 2-1

Alternative 2-2

Remember that you mustn't set any output file. So, you have to remove this line:

outputFile = file('build/output.log')

Upvotes: 0

Benjamin Muschko
Benjamin Muschko

Reputation: 33476

You can get the appropriate messages from Cargo if you run your Cargo task with the info log level e.g. gradle cargoRunLocal -i.

Upvotes: 3

Related Questions