Menu

#6 GlobalPropertiesManager does not work on user environment.

v0.2
open
nobody
5
2012-04-05
2012-04-05
No

Maybe the properties files are not accessible or writeble. The test has been done in
TaskStackView.java:
private File getBackupFile() {
String file = GlobalPropertiesManager.getProperty("backup.files.path");
if (file != null) {
System.out.println("Returning the backup file from properties::: "+file);
return new File(file);
} else {
String applicationDataFolder = getAppData();
String fileName = GlobalPropertiesManager.getProperty("backup.file.name");
file = applicationDataFolder + "/" + fileName;
setBackupFile(file);
System.out.println("Returning the backup file created::: "+file);
return new File(file);
}
}

this always returns fileName=null in the user environment, but it is not null in the development environment.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.