javamanager/javainstaller/installer/javasrc.s60/com/nokia/mj/impl/installer/utils/FileRoots.java
branchRCL_3
changeset 83 26b2b12093af
parent 60 6c158198356e
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
    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