From: Sasa M. <sa...@us...> - 2004-09-02 11:36:17
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16811/org/jrobin/core Modified Files: Util.java Log Message: minor changes Index: Util.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/Util.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Util.java 22 Jul 2004 08:10:19 -0000 1.22 --- Util.java 2 Sep 2004 11:36:08 -0000 1.23 *************** *** 262,273 **** } - private static final File homeDirFile; - private static final String homeDirPath; - - static { - homeDirPath = getUserHomeDirectory() + JROBIN_DIR + getFileSeparator(); - homeDirFile = new File(homeDirPath); - } - /** * Returns path to directory used for placement of JRobin demo graphs and creates it --- 262,265 ---- *************** *** 277,280 **** --- 269,274 ---- */ public static String getJRobinDemoDirectory() { + String homeDirPath = getUserHomeDirectory() + JROBIN_DIR + getFileSeparator(); + File homeDirFile = new File(homeDirPath); return (homeDirFile.exists() || homeDirFile.mkdirs())? homeDirPath: null; } |