I have directory structure like this
src
- main
- resources
- text.txt
- scala
- hello
- world.scala
- hello
- resources
- test
- same as main folder
- main
pom.xml
When in IDE (Intellij10), I could access it with relative path ("src/main/resource/text.txt") but it seems I can not do that when I compile in jar. How to read that file ?
also, I found that test.txt is copy into root of jar. Is this normal behavior ? Since I fear this will be clash with other resources file in src/test/resources.
thanks