tasks.create("name": "testAssemble", "type": Exec) { workingDir "../" commandLine "./gradlew", "assembleDebug" }
Android Gradle 自定义任务执行命令行
原文:http://www.cnblogs.com/negro-guoguo/p/7076425.html