From: jwang36 Date: Mon, 14 Aug 2006 01:53:55 +0000 (+0000) Subject: Tried to fix EDKT149. Since the issue happened randomly, only long time test can... X-Git-Tag: edk2-stable201903~24630 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=f496b9b5ce1dfdf5ee111c24de96529ee0c4708f;ds=sidebyside Tried to fix EDKT149. Since the issue happened randomly, only long time test can make sure it's really fixed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1243 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java index 3a30488cea..c2865cb907 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java @@ -72,7 +72,7 @@ public class IncludePath implements NestElement { @param name The name of include path **/ public void setName(String name){ - this.path = "-I " + name; + this.path = " -I " + name; } /** diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java index 446bf0d012..5c049773b2 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java @@ -354,16 +354,12 @@ public class MakeDeps extends Task { // String line = null; while ((line = lineReader.readLine()) != null) { - Pattern pattern = Pattern.compile(target + "[ ]*:[ ]*(.+)"); - Matcher matcher = pattern.matcher(line); - - while (matcher.find()) { + String[] filePath = line.split(" : "); + if (filePath.length == 2) { /// /// keep the file name after ":" /// - String filePath = line.substring(matcher.start(1), matcher.end(1)); - filePath = cleanupPathName(filePath); - lineSet.add(filePath); + lineSet.add(cleanupPathName(filePath[1])); } } lineReader.close();