src/share/tools/ProjectCreator/Util.java

Print this page
rev 2073 : imported patch vcproj-64

*** 78,88 **** return sb.toString(); } static String normalize(String file) { ! return file.replace('\\', '/'); } static String sep = File.separator; - static String os = "Win32"; //System.getProperty("os.name"); } --- 78,95 ---- return sb.toString(); } static String normalize(String file) { ! file = file.replace('\\', '/'); ! if (file.length() > 2) { ! if (file.charAt(1) == ':' && file.charAt(2) == '/') { ! // convert drive letter to uppercase ! String drive = file.substring(0, 1).toUpperCase(); ! return drive + file.substring(1); ! } ! } ! return file; } static String sep = File.separator; }