Index: FileUtil.java =================================================================== RCS file: /cvs/openide/src/org/openide/filesystems/FileUtil.java,v retrieving revision 1.116 diff -u -r1.116 FileUtil.java --- FileUtil.java 15 Sep 2004 07:12:28 -0000 1.116 +++ FileUtil.java 20 Sep 2004 17:35:58 -0000 @@ -1276,6 +1276,54 @@ } } + //On VMS, the case of the JRE classpaths returned from System.property + //isn't necessary consistent with the case of the JRE files on the physical + //disk. So we look up the directory and fix the case of the classpaths. + public static String normalizeVMSFilePaths(String paths) { + String[] pathTokens = paths.split(File.pathSeparator); + StringBuffer newPaths = new StringBuffer(); + for(int i=0; i 0) + newPaths.append( + normalizeVMSFilePath(pathTokens[i]) + + ((i+1) < pathTokens.length ? File.pathSeparator : "")); + } + return newPaths.toString(); + } + + //On VMS, the case of the JRE classpaths returned from System.property + //isn't necessary consistent with the case of the JRE files on the physical + //disk. So we look up the directory and fix the case of the classpaths. + public static String normalizeVMSFilePath(String path) { + //First, take out the 000000 + String nPath = path.replaceAll("/000000",""); + + //Now fix the cases of each files and directories + //by comparing against the native filesystem + StringBuffer newPath = new StringBuffer(); + String[] stok = nPath.split("/"); + + //Do the File.list of each directory from the root + //to find the correct case of each sub files/directories and construct + //a new path + for(int i=0; i