So my question is NOT how to load properties file from relative path, but rather how can I declare relative paths (relative to the properties file) as properties path in the file?
For example, I want to have a directory etc.
|-etc
|---File1
|---File2
|---properties.
Now inside properties I want something like,
file1 = ./File1
file2 = ./File2
but Java will simply get the actual content like "./File1"
How can i wire it so that Java will get the property and understand it should be relative to where the properties file is?
So when you do new File(properties.getproperty(file1))
it will will try to look for the file in C://etc/File1 rather than just ./File1