[GRADLE-2331] StackOverflow in TestNgOptions when trying to get things from the project scope Created: 31/May/12  Updated: 04/Jan/13  Resolved: 10/Aug/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-rc-3
Fix Version/s: 1.2-rc-1

Type: Bug
Reporter: Michael Arndt Assignee: René Gröschke (Inactive)
Resolution: Fixed Votes: 0

Issue Links:
Duplicate
Duplicates GRADLE-2307 Configuration of TestNG options cause... Resolved

 Description   

task myTests(type: Test) {
useTestNg()

{ logger.info "eine message" }

}

will result in a StackOverflow. This will work:

task myTests(type: Test) {
def myLogger = logger
useTestNg()

{ myLogger.info "eine message" }

}


Generated at Wed Jun 30 12:19:00 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.