diff options
author | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-17 09:41:22 +0000 |
---|---|---|
committer | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-17 09:41:22 +0000 |
commit | 96edfc7504d799fd9691a7d5c3a332e09fbf91ba (patch) | |
tree | 5ed7b228a048eac5e57765a86bf506a11b2d468a /Tools/Java/Source/FrameworkTasks | |
parent | d3f458486e33d78de1aa9fc2c347f2d20a31b4b6 (diff) | |
download | edk2-platforms-96edfc7504d799fd9691a7d5c3a332e09fbf91ba.tar.xz |
Remove some unuseful imports.
amend some incorrect use of EdkLog.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1775 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/FrameworkTasks')
5 files changed, 4 insertions, 10 deletions
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/CreateMtFileTask.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/CreateMtFileTask.java index bdc492c0dc..773df8e13b 100644 --- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/CreateMtFileTask.java +++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/CreateMtFileTask.java @@ -113,7 +113,7 @@ public class CreateMtFileTask extends Task implements EfiDefine { //
// command execution fail
//
- EdkLog.log(this, EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));
+ EdkLog.log(this, EdkLog.EDK_ERROR, "ERROR = " + Integer.toHexString(revl));
throw new BuildException(toolName + " failed!");
}
} catch (Exception e) {
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/EfiCompressTask.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/EfiCompressTask.java index 1ffd61f015..f36aad6481 100644 --- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/EfiCompressTask.java +++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/EfiCompressTask.java @@ -114,7 +114,7 @@ public class EfiCompressTask extends Task implements EfiDefine { //
// command execution fail
//
- EdkLog.log(this, EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));
+ EdkLog.log(this, EdkLog.EDK_ERROR, "ERROR = " + Integer.toHexString(revl));
throw new BuildException(toolName + " failed!");
}
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java index 4cbbfab8c6..3fdeb8d76a 100644 --- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java +++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java @@ -735,7 +735,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes { try {
value = Integer.parseInt(intStringNoPrefix, radix);
} catch (NumberFormatException e) {
- log("Incorrect format of int [" + intString + "]. -1 is assumed");
+ EdkLog.log(this, EdkLog.EDK_ERROR, "Incorrect format of int [" + intString + "]. -1 is assumed");
return -1;
}
@@ -942,7 +942,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes { //
ffsBuffer.close();
} catch (Exception e) {
- log("genffsfile failed!");
+ EdkLog.log(this, EdkLog.EDK_ERROR, "genffsfile failed!");
throw new BuildException (e.getMessage());
}
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java index 27e0ed7be5..20cf44b95d 100644 --- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java +++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java @@ -32,11 +32,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern;
import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
-import org.apache.tools.ant.taskdefs.Execute;
-import org.apache.tools.ant.taskdefs.LogStreamHandler;
-import org.apache.tools.ant.types.Commandline;
import org.tianocore.common.cache.FileTimeStamp;
import org.tianocore.common.logger.EdkLog;
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java index 5897bd2b09..178e92ae66 100644 --- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java +++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java @@ -15,8 +15,6 @@ package org.tianocore.framework.tasks; import java.io.File;
import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
|