I am having an interesting issue with using ant.importBuild. I have the following code
ant.importBuild 'build.xml' logging.captureStandardOutput LogLevel.DEBUG logging.captureStandardError LogLevel.DEBUG logging.level = LogLevel.DEBUG
If I understand this correctly this should set all tasks to have the LogLevel set to DEBUG. This works as expected for new tasks created in Gradle, but for the older tasks in ANT the LogLevel seems to be stuck at quiet. Interestingly if I do a gradle -d I get the expected debug out of ANT. Is there anyway to force a ‘-d’ flag for all tasks?