-
Notifications
You must be signed in to change notification settings - Fork 0
Description
The application uses the project's home directory too much. Currently, it:
- Creates a
Errosfolder to save logs of critical errors - Creates a
policiesfolder for the source and bytecode of user-made scheduling and allocation policies - Creates a
configuration.xmlfile, if none is present on startup
This makes code maintenance untidy, can introduce unwanted race conditions while running multiple instances of the application, and it is unknown whether this behavior works when the application is packaged into a .jar file.
Where possible, such dependencies on the OS's file system should be removed. Where not, there needs to be a well planned-out space for such files.
A preferrable alternative would be to encapsulate all of these behaviors on a folder, .ispd, and place this folder within the OS's default location for application configuration (i.e., %appdata% on Windows and .config on Linux).
Perhaps the user should be allowed to determine where the application folder would be located, or where specific things should be (i.e., select a location for custom policies). If this is done, this choice would probably still need to be preserved in a known place.