Fixed EDKT527 by adding a check on the file size in case of zero byte of byte
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 6 Mar 2007 03:28:01 +0000 (03:28 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 6 Mar 2007 03:28:01 +0000 (03:28 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2420 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java

index 7dfb8cb..86f39ad 100644 (file)
@@ -295,7 +295,8 @@ public class MakeDeps extends Task {
         while (!pendingFiles.empty()) {\r
             String src = pendingFiles.pop();\r
             File srcFile = new File(src);\r
-            if (!srcFile.exists()) {\r
+                       int fileLength = (int)srcFile.length();\r
+            if (!srcFile.exists() || fileLength == 0) {\r
                 continue;\r
             }\r
             //\r
@@ -307,7 +308,6 @@ public class MakeDeps extends Task {
                 FileInputStream fileReader = null;\r
                 BufferedInputStream bufReader = null;\r
                 String fileContent = "";\r
-                int fileLength = (int)srcFile.length();\r
 \r
                 try {\r
                     fileReader = new FileInputStream(srcFile);\r