Fixed an issue which will cause dependency check failure

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1558 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2006-09-19 07:04:08 +00:00
parent 77dd49a7d1
commit 34f40a4aca

View File

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