Kranky Posted December 5, 2007 Posted December 5, 2007 I am attempting to use the fmpro.evaluate() function inside a class. I get a 'groovy.lang.MissingPropertyException: No such property: fmpro for class:' error. Do i need to import a package for it to work?
shmert Posted December 5, 2007 Posted December 5, 2007 Hi, it sounds like your script references the 'fmpro' object as a class property instead of a global property. instead of calling myObject.fmpro.evaluate(...) try just calling fmpro.evaluate(...) Please paste the script you're evaluating in here.
Kranky Posted December 23, 2007 Author Posted December 23, 2007 (edited) Thanks for the reply. The problem was the scope of the global fmpro object. I got around it by setting the fmpro object to a static variable in my class. myClass.fmpro = fmpro myClass{ public static def fmpro; } Edited December 23, 2007 by Guest
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now