From ba74809ff6ada3a644f54d1657c7b82abe5206ef Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Sat, 26 Nov 2016 19:57:10 -0300 Subject: [PATCH] Deprecated '<<' --- jpos-app.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jpos-app.gradle b/jpos-app.gradle index 128b33ec37..bedd01e7be 100644 --- a/jpos-app.gradle +++ b/jpos-app.gradle @@ -110,8 +110,10 @@ task installResources(dependsOn: 'classes', type: JavaExec) { args = ["--outputDir=src/dist"] } -task viewTests (description: 'Open Test Reports') << { - Class.forName("java.awt.Desktop").newInstance().browse( - new File("${buildDir}/reports/tests", 'index.html').toURI()) +task viewTests (description: 'Open Test Reports') { + doLast { + Class.forName("java.awt.Desktop").newInstance().browse( + new File("${buildDir}/reports/tests", 'index.html').toURI()) + } }