**/\r
package org.tianocore.framework.tasks;\r
\r
+import java.io.File;\r
+\r
import org.apache.tools.ant.BuildException;\r
import org.apache.tools.ant.Project;\r
import org.apache.tools.ant.Task;\r
runner.setAntRun(project);\r
runner.setCommandline(commandLine.getCommandline());\r
\r
- System.out.println(Commandline.toString(commandLine\r
- .getCommandline()));\r
+ log(Commandline.toString(commandLine.getCommandline()), Project.MSG_VERBOSE);\r
+ log((new File(this.peFile)).getName());\r
\r
returnVal = runner.execute();\r
if (EFI_SUCCESS == returnVal) {\r
- ///\r
- /// command execution success\r
- ///\r
- System.out.println("SetStamp execute succeeded!");\r
+ log("SetStamp succeeded!", Project.MSG_VERBOSE);\r
} else {\r
///\r
/// command execution fail\r
///\r
- System.out.println("SetStamp failed. (error="\r
- + Integer.toHexString(returnVal) + ")");\r
- throw new BuildException("SetStamp failed. (error="\r
- + Integer.toHexString(returnVal) + ")");\r
+ log("ERROR = " + Integer.toHexString(returnVal));\r
+ throw new BuildException("SetStamp failed!");\r
}\r
} catch (Exception e) {\r
throw new BuildException(e.getMessage());\r