This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 48616
Collapse All | Expand All

(-)FileUtil.java (-2 / +37 lines)
Line 955 Link Here
955
        } else if (Utilities.getOperatingSystem() == Utilities.OS_VMS) {
956
            file = normalizeFileOnVMS (file);
Line 1052 Link Here
1054
    
1055
    //On VMS, the case of the JRE classpaths returned from System.property
1056
    //isn't necessary consistent with the case of the JRE files on the physical 
1057
    //disk. So we look up the directory and fix the case of the classpaths.
1058
    private static File normalizeFileOnVMS (File file) {
1059
        String path = file.getAbsolutePath();
1060
         //First, take out the 000000
1061
        String nPath = path.replaceAll("/000000","");
1062
        
1063
        //Now fix the cases of each files and directories
1064
        //by comparing against the native filesystem
1065
        StringBuffer newPath = new StringBuffer();
1066
        String[] stok = nPath.split("/");
1067
        
1068
        //Do the File.list of each directory from the root
1069
        //to find the correct case of each sub files/directories and construct 
1070
        //a new path
1071
        for(int i=0; i<stok.length; i++) {
1072
            if(stok[i].length() == 0)
1073
               continue;
1074
            newPath.append(File.separatorChar + stok[i]);
1075
            File f = new File(newPath.toString());
1076
            if (f.isDirectory()) {
1077
                String [] files = f.list();
1078
                for (int j=0; j<files.length; j++) {
1079
                    if ((i+1) < stok.length && files[j].equalsIgnoreCase(stok[i+1])) {
1080
                        stok[i+1] = files[j];
1081
                        break;
1082
                    }
1083
                }
1084
            }
1085
        }
1086
        return new File(newPath.toString());
1087
    }
Line 1277 Link Here
1277
    }
1313
    }              
1278
--

Return to bug 48616