I will switch our application to deploy Capistrano to Gradle.
Here you need to make an interactive user script.
I am stuck to provide user input between tasks.
task('hello') << { println "hello" } task('copy', type: Copy) { some_user_input = prompt("Are you sure to copy this file. ") ... // Here wants something like that if(some_user_input==true){ from(file('srcDir')) into(buildDir) } }
I am looking for a solution to this problem. If you know about this method than please let me know.
Thanks in advance.
source share