How to get IDEA not to compile groovy scripts?

I have a lot of groovy scripts in my test/resources directory that IDEA wants to compile by default.  I load these dynamically for unit tests and there are copies of the same class in them for testing purposes, so compilation fails.  I can remove the test resource directory as source via the project settings, but every time I re-import my pom the change gets blown away.  Is there a way to do prevent these scripts from being compiled that will preserve a project reimport from the pom?

Daniel

2 comments
Comment actions Permalink

Settings -> Compiler -> Excludes :-)

0
Comment actions Permalink

Wonderful.  Thanks very much!

Daniel

0

Please sign in to leave a comment.