2013-02-13 16 views

उत्तर

16

कुछ इस तरह करना चाहिए:

task openUrlInBrowser << { 
    java.awt.Desktop.desktop.browse "http://www.google.com".toURI() 
} 
1
task showReport(type:Exec) { 
    workingDir './build/reports/tests' 

    //on windows: 
    commandLine 'cmd', '/c', 'start index.html' 
} 

फिर चलाने

gradle showReport 

Gradle exec पर जानकारी देखें।

संबंधित मुद्दे