How to force resource files to be copied under the classes dir?

I have a question which is likely to be pretty basic but I couldn't find an answer... I have an app where the src/java dir also contains a number of resources and files which are loaded from the classpath by the app.

As such, I'd like them to be copied under the classes dir when I compile (or when I start the webapp): unfortunately only some of the files get copied. In particular: .gif and .properties are, .jrxml (jasper report xml definitions) are not.

Is there anything particular I can do to force idea to do this?

3 comments

Settings -> Compiler -> Resource patterns

Davide Baroncelli wrote:

I have a question which is likely to be pretty basic but I couldn't find an answer... I have an app where the src/java dir also contains a number of resources and files which are loaded from the classpath by the app.

As such, I'd like them to be copied under the classes dir when I compile (or when I start the webapp): unfortunately only some of the files get copied. In particular: .gif and .properties are, .jrxml (jasper report xml definitions) are not.

Is there anything particular I can do to force idea to do this?


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

Settings->Compiler->Resource patterns (top)


0

Please sign in to leave a comment.