Using junit and testng together steps on testng html file

hi, going through http://www.packtpub.com/gradle-effective-implementation-guide/book and running a junit test and a testng test using the build script below.

it works fine, but there is only one index.html file for the junit tests. is there an easy way to move the index.html file produced by the testng task to say indexng.html before the junit task? steps on it?

thanks

apply plugin: 'java'
repositories { mavenCentral() }
dependencies {
 testCompile 'junit:junit:[4.8,)', 'org.testng:testng:6.5.1+'
}
task testNG(type: Test) { useTestNG() }
test.dependsOn testNG
task runJava(dependsOn: test) << {
 javaexec {
  main = 'p.Foo'
  classpath sourceSets.main.runtimeClasspath
 }
}
runJava.description = 'Run Foo'

you should use different directories for the test reports. you can set the test report directory by using the testReportDir property of the test task:

testng.testReportDir = file("$buildDir/reports/testng")
test.testReportDir = file("$buildDir/reports/testjunit")

cheers, René

testng.testReportDir = file("$buildDir/reports/testng") // works like a charm!

thanks

Is there any possibility to do this in Gradle 2.0, its seems that testReportDir property has been removed?