def groovlet = { it, dir = groovletsDir ->groovletInstance = new GroovletUnderSpec("$it", dir)['sout', 'out', 'response', 'datastore', 'memcache', 'mail', 'urlFetch', 'images', 'users', 'user', 'defaultQueue', 'queues', 'xmpp','blobstore', 'files', 'oauth', 'channel', 'capabilities', 'namespace', 'localMode', 'app', 'backends', 'lifecycle'].each { groovletInstance."$it" = this."$it" }this.metaClass."${it.tokenize('.').first().tokenize('/').last()}" = groovletInstance}
--
--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en
---
You received this message because you are subscribed to the Google Groups "Gaelyk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaelyk+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thats my work but I need some time to have look at. I keep you posted how should you update your spec.
groovy.lang.MissingPropertyException: No such property: datastore for class: test at testSpec.TEST - the datastore is present in the groovlet binding(testSpec.groovy:30)