Forum Discussion

spillbeir's avatar
13 years ago

property expansion fails

1) I created a groovy script in the default scripts folder. It is a very simple class with a single static method that returns a string.

----------
package mytest

class testUtils
{
public static String testString()
{
return "Hi there";
}
}
----------

2) I can successfully import the script and call the static function from the project's "Load Script" tab

import mytest.testUtils
log.info(testUtils.testString())

in the script log tag, I get:

Mon Jan 21 16:58:07 CST 2013:INFO:Hi there

3) No matter how I try to use the call the function with a property expansion, I get the following error:

No such property: testUtils for class: Script43

Any help is much appreciated.
No RepliesBe the first to reply