Fixed an issue which will cause dependency check failure
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 19 Sep 2006 07:04:08 +0000 (07:04 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 19 Sep 2006 07:04:08 +0000 (07:04 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1558 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/GenBuild/org/tianocore/build/global/OnDependency.java

index 8438315..173528a 100644 (file)
@@ -73,6 +73,11 @@ public class OnDependency extends Task {
             return true;\r
         }\r
 \r
+        if (targets.nameList.size() == 0) {\r
+            EdkLog.log(this, EdkLog.EDK_VERBOSE, "No target file found!");\r
+            return true;\r
+        }\r
+\r
         Iterator dstIt = targets.nameList.iterator();\r
         while (dstIt.hasNext()) {\r
             String dstFileName = (String)dstIt.next();\r
@@ -106,6 +111,7 @@ public class OnDependency extends Task {
             }\r
         }\r
 \r
+        EdkLog.log(this, EdkLog.EDK_VERBOSE, "Target files are up-to-date!");\r
         return false;\r
     }\r
 \r