I found that I was getting an error message saying, ""The source of the type MyScript could not be shown as the type was not found" (where MyScript was the .groovy file that contained my main groovy script). I got this error even though my src directory was properly configured and even though the bin-groovy directory was properly listed as an output directory.
I found that the problem was related to the GROOVY_SUPPORT entry in my project's .classpath file. By default, the groovy nature seems to put the following line in the .classpath file:
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
I replaced this with
<classpathentry sourcepath="src" kind="lib" path="bin-groovy"/>
After that, the problem went away.
What if the GROOVY_SUPPORT variable? Where should it be defined? Where should it be documented?Bob White http://milkchaser DOT blogspot DOT com
home:727-490-7363, cell:727-463-6061