1.1 --- a/src/share/tools/ProjectCreator/Util.java Thu Feb 10 12:55:56 2011 +0100 1.2 +++ b/src/share/tools/ProjectCreator/Util.java Thu Feb 10 13:03:22 2011 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -47,7 +47,7 @@ 1.11 return sb.toString(); 1.12 } 1.13 1.14 - static String join(String padder, String v[]) { 1.15 + static String join(String padder, String v[]) { 1.16 StringBuffer sb = new StringBuffer(); 1.17 1.18 for (int i=0; i<v.length; i++) { 1.19 @@ -80,9 +80,16 @@ 1.20 1.21 1.22 static String normalize(String file) { 1.23 - return file.replace('\\', '/'); 1.24 + file = file.replace('\\', '/'); 1.25 + if (file.length() > 2) { 1.26 + if (file.charAt(1) == ':' && file.charAt(2) == '/') { 1.27 + // convert drive letter to uppercase 1.28 + String drive = file.substring(0, 1).toUpperCase(); 1.29 + return drive + file.substring(1); 1.30 + } 1.31 + } 1.32 + return file; 1.33 } 1.34 1.35 static String sep = File.separator; 1.36 - static String os = "Win32"; //System.getProperty("os.name"); 1.37 }