Fixed EDKT118
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1079 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -195,16 +195,10 @@ public class MakeDeps extends Task {
|
||||
/// Remove any duplicated path separator or inconsistent path separator
|
||||
///
|
||||
private String cleanupPathName(String path) {
|
||||
try {
|
||||
path = (new File(path)).getCanonicalPath();
|
||||
} catch (IOException e) {
|
||||
String separator = "\\" + File.separator;
|
||||
String duplicateSeparator = separator + "{2}";
|
||||
path = Path.translateFile(path);
|
||||
path = path.replaceAll(duplicateSeparator, separator);
|
||||
return path;
|
||||
}
|
||||
|
||||
String separator = "\\" + File.separator;
|
||||
String duplicateSeparator = separator + "{2}";
|
||||
path = Path.translateFile(path);
|
||||
path = path.replaceAll(duplicateSeparator, separator);
|
||||
return path;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user