summaryrefslogtreecommitdiff
path: root/Tools/Source/GenBuild
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-13 02:15:32 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-13 02:15:32 +0000
commit93f5dd0a0e476c3eca7bd2f8375733b49e5f1b66 (patch)
tree318f375a5d31cde2c5b2b5b94719154e4e30a953 /Tools/Source/GenBuild
parent5117b83be8d73a9c5d15b236e57e4d194d1d9428 (diff)
downloadedk2-platforms-93f5dd0a0e476c3eca7bd2f8375733b49e5f1b66.tar.xz
1) Changed ToolArg class to abstract generic arguments of a tool
2) Added FileArg class to abstract arguments which represent the path of a file 3) Changed the log method to EdkLog and the message format for flashmap, fwimage, gendepex, genfvimage, gensection, peirebase, strgather and vfrcompile tool. And changed these tools to use ToolArg and FileArg to keep their arguments. 4) Added more verbose message for OnDependency task 5) Changed MakeDeps tool to insert a file end flag. This is very useful when dependency check is broken occasionally 6) Cleaned the coding style of java code git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1519 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/GenBuild')
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/global/OnDependency.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/OnDependency.java b/Tools/Source/GenBuild/org/tianocore/build/global/OnDependency.java
index 6f845ea371..84383151fa 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/global/OnDependency.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/global/OnDependency.java
@@ -21,6 +21,7 @@ import java.util.Map;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.taskdefs.Sequential;
+import org.tianocore.common.logger.EdkLog;
/**
Class OnDepdendency is used to check the timestamp between source files and
@@ -54,7 +55,7 @@ public class OnDependency extends Task {
/**
Standard execute method of ANT task
**/
- public void execute() {
+ public void execute() throws BuildException {
if (isOutOfDate() && task != null) {
task.perform();
}
@@ -68,6 +69,7 @@ public class OnDependency extends Task {
/// if no source files specified, take it as a fresh start
///
if (sources.nameList.size() == 0) {
+ EdkLog.log(this, EdkLog.EDK_VERBOSE, "No source file spcified!");
return true;
}
@@ -76,6 +78,7 @@ public class OnDependency extends Task {
String dstFileName = (String)dstIt.next();
File dstFile = new File(dstFileName);
if (!dstFile.exists()) {
+ EdkLog.log(this, EdkLog.EDK_VERBOSE, "Target file [" + dstFileName + "] doesn't exist!");
return true;
}
@@ -97,6 +100,7 @@ public class OnDependency extends Task {
}
if (dstTimeStamp < srcTimeStamp) {
+ EdkLog.log(this, EdkLog.EDK_VERBOSE, "Source file [" + srcFileName + "] has been changed since last build!");
return true;
}
}