Hi!
I have the next properties file D:\development\\myproject\build\classes\config\systemsettings.properties.
In this file I have some settings. I load this propertie file:
...
private static Properties systemSettingsProps = new Properties();
...
private static final String SUFFIX_PATH_SYSTEMSETTINGS = "D:\\development\\myproject\\build\\classes\\config\\systemsettings.properties";
...
FileInputStream fileInputStreamSystemSettings = new FileInputStream(SUFFIX_PATH_SYSTEMSETTINGS);
systemSettingsProps.load(fileInputStreamSystemSettings);
fileInputStreamSystemSettings.close();
OK this work. But I want to load properties file by using the relative path (not absolute path). How I can do this?
I want to set only relative path something like this: "\\config\\systemsettings.properties" .