01: package fri.util.props;
02:
03: import java.io.File;
04:
05: public abstract class ConfigDir {
06: private static String dir = null;
07:
08: public static String dir() {
09: if (dir == null) {
10: dir = System.getProperty("user.home");
11:
12: if (dir.endsWith(File.separator) == false)
13: dir = dir + File.separator;
14:
15: dir = dir + ".friware" + File.separator;
16: }
17:
18: return dir;
19: }
20:
21: private ConfigDir() {
22: }
23: }
|