某些时候构建时需要通过控制台接受用户输入参数
def myName
task hello() << {
myName = System.console().readLine("\nEnter your name:")
println "name is $myName"
}
defaultTasks("hello")
某些时候构建时需要通过控制台接受用户输入参数
def myName
task hello() << {
myName = System.console().readLine("\nEnter your name:")
println "name is $myName"
}
defaultTasks("hello")
转载于:https://my.oschina.net/u/156096/blog/228992