When using system temp directory, store renderer binary archive in a 'permanent' directory to re-use on the next launch

This commit is contained in:
Laurent Clouet
2017-04-30 22:34:16 +02:00
parent b447e54a4a
commit 3926fe37ac

View File

@@ -195,6 +195,12 @@ public class Configuration {
this.workingDirectory.delete(); // hoho
this.workingDirectory.mkdir();
this.workingDirectory.deleteOnExit();
// since there is no working directory and the client will be working in the system temp directory,
// we can also set up a 'permanent' directory for immutable files (like renderer binary)
this.storageDirectory = new File(this.workingDirectory.getParent() + File.separator + "sheepit_binary_cache");
this.storageDirectory.mkdir();
}
catch (IOException e) {
e.printStackTrace();