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

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -