Closed Phillipus closed 1 year ago
So in fact this would require one change to Archi itself (jasper-reports) and one to coArchi (model-repository) and one to jArchi (scripts).
Not true. At the moment the root location for Archi's data is derived from this in ArchiPlugin
class:
public File getUserDataFolder()
This in fact returns getWorkspaceFolder()
. So all we have to do is change the default location of getUserDataFolder()
to @user.home/Documents/Archi
and the locations of jasper-reports
, model-repository
and scripts
will be changed too. In cases where getUserDataFolder()
is being called to store internal data those cases can be replaced with getWorkspaceFolder()
. In fact, that makes more sense.
@jbsarrodie From this point on when testing the latest code, your jasper templates, coArchi repos and jArchi scripts will be gone. :-) Copy them from @user.home/AppData/Roaming/Archi4
to @user.home/Documents/Archi
I've written a migrator so that the first time Archi 5 is run it will check if the default Archi4
folder exists and if it does copy all the files to the new target folders. If the Archi configuration does not use the default Archi4
folder names it won't migrate and the user will have to manually copy.
Location of Archi data folders
These are the current locations:
@user.home/.archi4
@user.home/AppData/Roaming/Archi4
@user.home/Library/Application Support/Archi4
We propose to change these to:
@user.home/.archi
@user.home/AppData/Roaming/Archi
@user.home/Library/Application Support/Archi
We want to store only app settings in these locations such as:
Directories that should be more accessible are:
So in fact this would require one change to Archi itself (
jasper-reports
) and one to coArchi (model-repository
) and one to jArchi (scripts
).We could create these in a
@user.home/Documents/Archi
folder. Windows, Mac and Linux distros all seem to have a@user.home/Documents
folder.Alternate suggestions are welcome.