From: jwang36 Date: Mon, 21 Aug 2006 07:13:10 +0000 (+0000) Subject: Added file existing condition to judge if the dep file should be re-generated. X-Git-Tag: edk2-stable201903~24541 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=1f08e795f837f8080cf61524ab0c8200b7cab991;hp=5ea254f612159f26b7921a95f0d9cfd5719eae1e Added file existing condition to judge if the dep file should be re-generated. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1332 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java index 5b76176a64..6a02c1c590 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java @@ -363,7 +363,10 @@ public class MakeDeps extends Task { String line = null; while ((line = lineReader.readLine()) != null) { File sourceFile = new File(line); - if (sourceFile.lastModified() > depsFileTimeStamp) { + // + // If a file cannot be found (moved or removed) or newer, regenerate the dep file + // + if ((!sourceFile.exists()) || (sourceFile.lastModified() > depsFileTimeStamp)) { ret = false; break; }