It seems that it is not possible to instanciate classes directly from Gant scripts. I dont know why, but it worked before.
The solution is to instanciate the classes by reflection.
mcLoader = classLoader.loadClass('plugin.ui.scaffold.UserInterfaceTemplateGenerator')
def instanciatedClass = mcLoader.newInstance(classLoader)