message-resources parameter showing up as error in struts-config build 7126

I'm not sure if this a bug or not - been searching bug tracker and I see various things about in version 6 that are closed.

In my struts-config I have:

<message-resources parameter="ApplicationResources" />

and IDEA is complaining that it can not resolve symbol ApplicationResources.

I have ApplicationResources defined as ApplicationResources_en.properties in a resources folder and its working fine in the build. I also tried just changing the name to ApplicationResources.properties and it's still flagged as not resolvable.

Is there a setting somewhere that I'm missing ?

3 comments
Comment actions Permalink

Do you have the file in the root package of your sources? Also, what
variants does IDEA suggest you?


0
Comment actions Permalink

No, it is not in the root package of my sources. I have the file located in a directory called "resources" that it outside of the source directory. (My build script later on puts the correct files in my classes dir.)

Is there a way I can tell IDEA to use a directory outside of sources?

(Also, It doesn't give me any variants as suggestions.)

0
Comment actions Permalink

No, unfortunately not (yet). Simply mark "/resources/" as additional source path in your module.

0

Please sign in to leave a comment.