16 Jul 22:45
[groovy-user] referencing a binding variables that's not passed
From: Kallin Nagelberg <kallin.nagelberg@...>
Subject: [groovy-user] referencing a binding variables that's not passed
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-07-16 20:47:30 GMT
Subject: [groovy-user] referencing a binding variables that's not passed
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-07-16 20:47:30 GMT
I have a groovy script that may or may not be called from another script.
In the the callee I'm trying to do something like:
if (bindingvar){
// do something
}
It works great when bindingvar is in the binding (ie the other script called it), but when I run the script alone it complains of nosuchproperty.
How can I check to see if the property is passed without catching that exception?
In the the callee I'm trying to do something like:
if (bindingvar){
// do something
}
It works great when bindingvar is in the binding (ie the other script called it), but when I run the script alone it complains of nosuchproperty.
How can I check to see if the property is passed without catching that exception?
RSS Feed