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
This commit is contained in:
jwang36 2006-08-14 01:53:55 +00:00
parent 3b06f97c13
commit f496b9b5ce
2 changed files with 4 additions and 8 deletions

View File

@ -72,7 +72,7 @@ public class IncludePath implements NestElement {
@param name The name of include path @param name The name of include path
**/ **/
public void setName(String name){ public void setName(String name){
this.path = "-I " + name; this.path = " -I " + name;
} }
/** /**

View File

@ -354,16 +354,12 @@ public class MakeDeps extends Task {
// //
String line = null; String line = null;
while ((line = lineReader.readLine()) != null) { while ((line = lineReader.readLine()) != null) {
Pattern pattern = Pattern.compile(target + "[ ]*:[ ]*(.+)"); String[] filePath = line.split(" : ");
Matcher matcher = pattern.matcher(line); if (filePath.length == 2) {
while (matcher.find()) {
/// ///
/// keep the file name after ":" /// keep the file name after ":"
/// ///
String filePath = line.substring(matcher.start(1), matcher.end(1)); lineSet.add(cleanupPathName(filePath[1]));
filePath = cleanupPathName(filePath);
lineSet.add(filePath);
} }
} }
lineReader.close(); lineReader.close();