Remove some unuseful imports.
authorqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 17 Oct 2006 09:41:22 +0000 (09:41 +0000)
committerqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 17 Oct 2006 09:41:22 +0000 (09:41 +0000)
amend some incorrect use of EdkLog.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1775 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/CreateMtFileTask.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/EfiCompressTask.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java

index bdc492c..773df8e 100644 (file)
@@ -113,7 +113,7 @@ public class CreateMtFileTask extends Task implements EfiDefine {
                 //\r
                 // command execution fail\r
                 //\r
-                EdkLog.log(this, EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));\r
+                EdkLog.log(this, EdkLog.EDK_ERROR, "ERROR = " + Integer.toHexString(revl));\r
                 throw new BuildException(toolName + " failed!");\r
             }\r
         } catch (Exception e) {\r
index 1ffd61f..f36aad6 100644 (file)
@@ -114,7 +114,7 @@ public class EfiCompressTask extends Task implements EfiDefine {
                 //\r
                 // command execution fail\r
                 //\r
-                EdkLog.log(this, EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));\r
+                EdkLog.log(this, EdkLog.EDK_ERROR, "ERROR = " + Integer.toHexString(revl));\r
                 throw new BuildException(toolName + " failed!");\r
 \r
             }\r
index 4cbbfab..3fdeb8d 100644 (file)
@@ -735,7 +735,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
        try {\r
            value = Integer.parseInt(intStringNoPrefix, radix);\r
        } catch (NumberFormatException e) {\r
-           log("Incorrect format of int [" + intString + "]. -1 is assumed");\r
+           EdkLog.log(this, EdkLog.EDK_ERROR, "Incorrect format of int [" + intString + "]. -1 is assumed");\r
            return -1;\r
        }\r
 \r
@@ -942,7 +942,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
             //\r
             ffsBuffer.close();\r
         } catch (Exception e) {\r
-            log("genffsfile failed!");\r
+            EdkLog.log(this, EdkLog.EDK_ERROR, "genffsfile failed!");\r
             throw new BuildException (e.getMessage());\r
         }\r
 \r
index 27e0ed7..20cf44b 100644 (file)
@@ -32,11 +32,7 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;\r
 \r
 import org.apache.tools.ant.BuildException;\r
-import org.apache.tools.ant.Project;\r
 import org.apache.tools.ant.Task;\r
-import org.apache.tools.ant.taskdefs.Execute;\r
-import org.apache.tools.ant.taskdefs.LogStreamHandler;\r
-import org.apache.tools.ant.types.Commandline;\r
 import org.tianocore.common.cache.FileTimeStamp;\r
 import org.tianocore.common.logger.EdkLog;\r
 \r
index 5897bd2..178e92a 100644 (file)
@@ -15,8 +15,6 @@ package org.tianocore.framework.tasks;
 \r
 import java.io.File;\r
 import java.io.IOException;\r
-import java.util.ArrayList;\r
-import java.util.List;\r
 \r
 import org.apache.tools.ant.BuildException;\r
 import org.apache.tools.ant.Project;\r