Gradle 中这两个任务之间到底有什么区别:
task sampleTask {
String myFile = "sample.txt"
delete myFile
}
task sampleTask {
ext.myFile = "sample.txt"
delete myFile
}
它们是基本相同的还是有某种不同?
Gradle 中这两个任务之间到底有什么区别:
task sampleTask {
String myFile = "sample.txt"
delete myFile
}
task sampleTask {
ext.myFile = "sample.txt"
delete myFile
}
它们是基本相同的还是有某种不同?