How to read source code about Task

not-a-bug

(ilumer) #1

If I want to know the source code about clean Task,I can not find a good way to know the source code about clean task.can you tell me the good way to learn gradle task .(I know that I can clone the gradle source code ,but it is hard to find a task)


(René Groeschke) #2

hey,

you can run

>gradle help --task :clean 

to learn more about e.g. the clean task. This gives you also the class name of the task.

Detailed task information for :clean

Path
     :clean

Type
     Delete (org.gradle.api.tasks.Delete)

Description
     Deletes the build directory.

Group
     build

(ilumer) #3

Thank you.it is helpful for me to learn gradle