Debugging scripts loaded with GroovyShell (in eclipse)

前端 未结 1 1593
灰色年华
灰色年华 2021-01-20 01:19

I am working with eclipse and groovy plug in. I am building a test harness to debug and test groovy scripts. The scripts are really simple but long, most of them just if/e

相关标签:
1条回答
  • 2021-01-20 02:02

    I am guessing that your scripts are not on the classpath of your project. You need to add them to the classpath and preferably make sure that package statements are correct (or make sure they are in the default directory for that source folder).

    You may also want to designate this source folder as a script folder. This will ensure that your scripts are not compiled to the output folder. You can do this through Preferences -> Groovy -> Compiler. Click the checkbox to enable script folders and then create the regex to specify the folder. You can also specify whether or not the scripts should be copied over as-is to the output folder.

    0 讨论(0)
提交回复
热议问题