add doFirst example

This commit is contained in:
Juraj Michalek
2014-05-09 16:28:50 +02:00
parent 64f78ee11c
commit d990899a5c
2 changed files with 26 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
task helloWorld {
// Configuration phase - Gradle learns about tasks.
// This scope is executed first
description "Say hello :-)"
doFirst {
// Execution phase
println "Sunny day."
}
doLast {
// Execution phase
println "Greetings from Brno"
}
}