For example, I have a Gradle script like:
myTask_A { doFirst { println "first string" } doLast { println "last string" } }
The following two tasks have exactly the same execution result:
myTask_B { doFirst { println "first string" println "last string" } } myTask_C { doLast { println "first string" println "last string" } }
What is the design goal of doFirst and doLast, like any of the above tasks, gives the same result?
gradle
Liu Nate
source share