How to get current task's info?

Hi All eXpert,

Is it possible to get current task’s info like name inside a groovy plug-in task during a task execution?

I need specify some attribute based on current task’s name.

thanks for your support in advance.

project.gradle.startParameter.taskNames contain task names.