Define yourself TaskListener Beans

Define yourself TaskListener Beans in "conf/spring/resources.groovy"
file.

steps:
1. define task litener beans name in grails app conf/config.groovy:
preParseListenersName = ["taskListener1", "taskListener2",
"taskListener3"]

2.define task litener beans in grails app conf/spring/resources.groovy:
beans {
taskListener1(MyTaskListener1)
taskListener2(MyTaskListener2)
taskListener3(MyTaskListener3)
}