This works for me:


test {

forkEvery = 1
systemProperties['net.sourceforge.cobertura.datafile'] = cobSerFile
}

2010/10/18 Tomek Kaczanowski <[email protected]>

> Hello All,
>
> this used to work with Gradle (I think with some previous 0.9):
> test {
>    useTestNG()
>    systemProperties ["net.sourceforge.cobertura.datafile": cobSerFile]
> }
>
> But now dies with:
>
> build_cobertura_gradle_d666424bca0edd4158c31cd1d956c684: 38: You tried
> to use a map entry for an index operation, this is not allowed. Maybe
> something should be set in parentheses or a comma is missing?
>  @ line 38, column 23.
>       systemProperties ["net.sourceforge.cobertura.datafile": cobSerFile]
>
>
> This works:
> test {
>    useTestNG()
>    systemProperties["net.sourceforge.cobertura.datafile"] = cobSerFile
> }
>
> If the syntax has changed, then please mention it on
> http://docs.codehaus.org/display/GRADLE/Gradle+0.9+Breaking+Changes.
> Or maybe I'm missing something?
>
> --
> Regards / Pozdrawiam
> Tomek Kaczanowski
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to