Hi,
I tried to define a default task "help" which would run if no other task is
specified (in a multi-project build).
It worked fine, but I was surprised to learn that when I specify some other
task (like "build"), the default "help" task runs before it anyway.
I thought that default tasks should only run when nothing else is
specified... this is how the documentation explains it...
Did I misunderstand something? :-)
This is how I defined it in the master build.gradle:
defaultTasks "help"
task help {
println ""
println "Common commands:"
println ""
println " ***** clean full rebuild with tests ***** "
println " time gradle clean build"
println ""
println " ***** fast build without tests ***** "
println " time gradle build -xtest"
println ""
}
Thank you in advance,
Andrew
--
--
Andrew Schetinin