mirror of https://github.com/acidanthera/audk.git
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:
parent
3b06f97c13
commit
f496b9b5ce
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue