-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directories in profiles are not deleted #561
Comments
Confirmed this happens using the Windows-only DROID 6.5 with embedded java version, on Win 10. Works correctly on Linux using the all platforms version, using openjdk 11. So looks like something to do with running this code on Windows, not the version of the code itself or the version of Java. The code itself that performs the deletion doesn't appear to have changed for 6.5. I don't currently have a dev environment set up in Windows to debug this currently, so looking for someone else to step through the ProfileManagerImp.closeProfile() method and see what's happening under Windows. |
it looks like closing the profile does not release references to the files in the derby database. The reference is released only when the Java process is terminated (i.e. Droid is shutdown) hence the files cannot be deleted. The error says the "files are being accessed". |
It would make sense the difference between Linux and windows here. Linux files can be deleted even if something has a file reference open, windows file system does not allow it. |
Thanks Matt 👍🏼 |
When I run any droid command for example:
In directory C:\Users\xxx.droid6\profiles is created new directory.
In droid 6.4 this directory is deleted when command finishes, but in 6.5 it is not deleted. Every command causes new directory creation.
.droid/droid.properties are default and contains:
The text was updated successfully, but these errors were encountered: