I'm working on a framework-type project in Eclipse, that has a res
folder attached with, as you guessed Resources inside of it. At the moment, they are crucial text-files that are to be read.
I also have a main test rig that is apart of it's own Eclipse project, as I plan to expand it in the future. This test rig has included the framework project on it's Build Path, so I can access classes from the framework as they are added.
But this is where my problems lie: If I want to import a class, that works fine. If I want to access a file through an InputStream
, or Reader
, it breaks. I know this is because the files included from the secondary project aren't placed inside the test rigs bin
folder, rather they reside in their own bin
in the other project.
Is there a way I can get my main project to access resources from the other without having to do ../../
trickery in my file paths? I plan on making this a real thing and don't want file paths doing things like that.