Looking for best practice here. My app requires a few text files. I must use the following directory structure:
proj/src/main/java/com/foo/MyClass.java
proj/src/main/rsrc/File1.txt
I want to be able to run the app in Eclipse and from command line (maven-packaged into a jar), and it has to work under Windows and Linux.
- What do I need to do in terms of project config?
- How do I access the resource file in code?
Cheers
EDIT: minor rewording - directory structure is enforced from above.