javamanager/javainstaller/installer/javasrc.s60/com/nokia/mj/impl/installer/utils/FileRoots.java
equal
deleted
inserted
replaced
60 * Returns directory where the icons registered to |
60 * Returns directory where the icons registered to |
61 * platform should be copied in S60. |
61 * platform should be copied in S60. |
62 */ |
62 */ |
63 public static String getRegisteredIconDir(int aDrive) |
63 public static String getRegisteredIconDir(int aDrive) |
64 { |
64 { |
65 String result = getAppsRoot(); |
65 return FileUtils.getDriveName(aDrive) + ":\\data\\java\\"; |
66 result = FileUtils.setDrive(result, aDrive); |
|
67 String replace = "\\private\\"; |
|
68 int i = result.indexOf(replace); |
|
69 if (i == -1) |
|
70 { |
|
71 return FileUtils.getDriveName(aDrive) + ":\\data\\java\\"; |
|
72 } |
|
73 return result.substring(0, i) + "\\public\\" + |
|
74 result.substring(i + replace.length()); |
|
75 } |
66 } |
76 |
67 |
77 /** |
68 /** |
78 * Returns the directory that contains the resources |
69 * Returns the directory that contains the resources |
79 * needed by Java Installer, e.g. 'trusted' icon |
70 * needed by Java Installer, e.g. 'trusted' icon |