Subversion Repository Public Repository

litesoft

Diff Revisions 300 vs 301 for /trunk/Java/ScarPlus/src/com/esotericsoftware/utils/Util.java

Diff revisions: vs.
  @@ -15,6 +15,20 @@
15 15 PROGRESS_LINE_SINK.addLine( pMessage );
16 16 }
17 17
18 + public static final File CANONICAL_USER_DIR;
19 +
20 + static
21 + {
22 + try
23 + {
24 + CANONICAL_USER_DIR = new File( System.getProperty( "user.dir" ) ).getCanonicalFile();
25 + }
26 + catch ( IOException e )
27 + {
28 + throw new Error( e );
29 + }
30 + }
31 +
18 32 /**
19 33 * True if running on a Mac OS.
20 34 */
  @@ -169,4 +183,9 @@
169 183 }
170 184 return pCloseable;
171 185 }
186 +
187 + public static boolean isAbsolute( File pFile )
188 + {
189 + return false; // todo: ...
190 + }
172 191 }