Jun 01, 2017
09:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 01, 2017
09:36 AM
Hi again,
I'm having a little trouble with using Groovy closures in the App Manifest.
Here's whay I'm trying to do:
When I add the App to my DAVE CE project and click 'Generate Code', I get a 'java.lang.NoClassDefFoundError'.
Am I doing something wrong or is it for some reason not possible to use Groovy Closures in the generateFiles() method?
I have however been able to use a similar pattern and closures in the App constructor.
Kind regards
Sebastian
I'm having a little trouble with using Groovy closures in the App Manifest.
Here's whay I'm trying to do:
def generateFiles() {
def static_templates = [
'foo.c',
'foo.h',
]
static_templates.each{ name -> copy name, name }
}
When I add the App to my DAVE CE project and click 'Generate Code', I get a 'java.lang.NoClassDefFoundError'.
Am I doing something wrong or is it for some reason not possible to use Groovy Closures in the generateFiles() method?
I have however been able to use a similar pattern and closures in the App constructor.
Kind regards
Sebastian
0 Replies