mirror of https://github.com/acidanthera/audk.git
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:
parent
d3f458486e
commit
96edfc7504
|
@ -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) {
|
||||
|
|
|
@ -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!");
|
||||
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue