Run a hava program from gradle as a part of another task -


i can run java program separate gradle task using javaexec type task:

task (foo, type: javaexec) {     main = '...'     ... } 

however, how run java program part of task, in dolast? can ant executor, there way more native gradle?

you can define dependency dependson between tasks or can use javaexec method defined on project instance, see here.

pseudocode:

task t {    dolast {       javaexec {        //logic goes here       }    } } 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -