A gradle task take long time to execute and doesn't produce any response. I want to execute that task and move on to next task

时光毁灭记忆、已成空白 提交于 2020-07-10 08:43:44

问题


Inside build.gradle file:

task updateJson(){
        //updates a json file
}
task Conn(type: NodeTask, dependsOn: updateJson){
        script = file("connect.js")
}
yarn_test.dependsOn Conn

Console Output:

:updateJson
:Conn
Before config
::
Connect.js has been executed. Your app is now listening to port 6062.
<===========--> 85% EXECUTING
> :Conn

After that, the yarn_test doesn't start.

The task Conn is used to establish a connection and it doesn't return any execution response/result. It only enables localhost 6062 port for listening messages.

Is there any way to move on to the yarn_test just after triggering Conn task and without waiting for its execution result/response?

来源:https://stackoverflow.com/questions/62304898/a-gradle-task-take-long-time-to-execute-and-doesnt-produce-any-response-i-want

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!