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
This commit is contained in:
qouyang
2006-10-17 09:41:22 +00:00
parent d3f458486e
commit 96edfc7504
5 changed files with 4 additions and 10 deletions

View File

@ -113,7 +113,7 @@ public class CreateMtFileTask extends Task implements EfiDefine {
// //
// command execution fail // 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!"); throw new BuildException(toolName + " failed!");
} }
} catch (Exception e) { } catch (Exception e) {

View File

@ -114,7 +114,7 @@ public class EfiCompressTask extends Task implements EfiDefine {
// //
// command execution fail // 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!"); throw new BuildException(toolName + " failed!");
} }

View File

@ -735,7 +735,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
try { try {
value = Integer.parseInt(intStringNoPrefix, radix); value = Integer.parseInt(intStringNoPrefix, radix);
} catch (NumberFormatException e) { } 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; return -1;
} }
@ -942,7 +942,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
// //
ffsBuffer.close(); ffsBuffer.close();
} catch (Exception e) { } catch (Exception e) {
log("genffsfile failed!"); EdkLog.log(this, EdkLog.EDK_ERROR, "genffsfile failed!");
throw new BuildException (e.getMessage()); throw new BuildException (e.getMessage());
} }

View File

@ -32,11 +32,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.tools.ant.BuildException; import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task; 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.cache.FileTimeStamp;
import org.tianocore.common.logger.EdkLog; import org.tianocore.common.logger.EdkLog;

View File

@ -15,8 +15,6 @@ package org.tianocore.framework.tasks;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.tools.ant.BuildException; import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project; import org.apache.tools.ant.Project;