Kevin, IIRC, some of the options for TestNG (and JUnit) are no longer on the Option object, but were moved up. Try calling the same methods (excludeGroups in this case) w/o options.
On Sat, Mar 5, 2011 at 16:09, Kevin Stembridge <[email protected]> wrote: > Hi all, > > I'm getting a StackOverflow from the following code: > > > > tasks.test.useTestNG() { options -> > > options.excludeGroups 'broken' > > if (project.buildProps.testProfileType != 'integration') { > options.excludeGroups.add('integration.dao') > } > > } > > > The following output is repeated until the overflow occurs: > > 23:06:53.062 [ERROR] [org.gradle.BuildExceptionReporter] at > org.gradle.api.tasks.testing.testng.TestNGOptions.methodMissing(TestNGOptions.groovy:209) > > > The offending line appears to be the if statement inside the closure above. > Without that there is no overflow. > > Any idea what I'm doing wrong? > > Cheers, > Kevin > -- Jason Porter http://lightguard-jp.blogspot.com http://twitter.com/lightguardjp Software Engineer Open Source Advocate Author of Seam Catch - Next Generation Java Exception Handling PGP key id: 926CCFF5 PGP key available at: keyserver.net, pgp.mit.edu --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
