Slap a big fat random number on the end of our cache directory to avoid
annoyances when we run multiple clients for testing. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2488 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ResourceBundle.java,v 1.11 2003/04/27 03:27:21 mdb Exp $
|
||||
// $Id: ResourceBundle.java,v 1.12 2003/04/28 18:21:47 mdb Exp $
|
||||
|
||||
package com.threerings.resource;
|
||||
|
||||
@@ -232,10 +232,11 @@ public class ResourceBundle
|
||||
Log.info("No system defined temp directory. Faking it.");
|
||||
tmpdir = System.getProperty("user.dir");
|
||||
}
|
||||
_tmpdir = new File(tmpdir, ".narcache");
|
||||
long rando = (long)(Math.random() * Long.MAX_VALUE);
|
||||
_tmpdir = new File(tmpdir, ".narcache" + File.separator + rando);
|
||||
if (!_tmpdir.exists()) {
|
||||
Log.info("Creating narya temp cache directory '" + _tmpdir + "'.");
|
||||
_tmpdir.mkdir();
|
||||
_tmpdir.mkdirs();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user