@throws BuidException\r
**/\r
public void execute() throws BuildException {\r
+ if (isUptodate()) {\r
+ EdkLog.log(this, EdkLog.EDK_VERBOSE, outputFile.toFileList() + " is up-to-date!");\r
+ return;\r
+ }\r
\r
Project project = this.getOwningTarget().getProject();\r
\r
public void setMapFile(String mapFile) {\r
this.mapFile.setArg(" -M ", mapFile);\r
}\r
+\r
+ //\r
+ // Dependency check\r
+ // \r
+ private boolean isUptodate() {\r
+ File srcFile = new File(inputFile.getValue());\r
+ File dstFile = new File(outputFile.getValue());\r
+\r
+ if (srcFile.lastModified() > dstFile.lastModified()) {\r
+ return false;\r
+ }\r
+\r
+ return true;\r
+ }\r
}\r