How to include a different file type like .sql to be included in make/compile output????

This is driving me nuts. I'm creating a unit test and I want to run in it in IDEA.
In the root of my test module src dir I have a .sql file that I want to use as my script that is used to populate an embeded db.
The problem is IDEA doesn't recognize it as a type that is should include in the compile. If I change it to .xml I can get it to work but that's sort of lame. There should be a way to say "any files in my src dir.. copy them over if they aren't java files"
Is there a way to do this?

1 comment
Comment actions Permalink

Hello rick,

Settings | Compiler | Resource Patterns

This is driving me nuts. I'm creating a unit test and I want to run in
it in IDEA.

In the root of my test module src dir I have a .sql file that I want
to use as my script that is used to populate an embeded db.

The problem is IDEA doesn't recognize it as a type that is should
include in the compile. If I change it to .xml I can get it to work
but that's sort of lame. There should be a way to say "any files in my
src dir.. copy them over if they aren't java files"

Is there a way to do this?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.