X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FSource%2FFrameworkTasks%2Forg%2Ftianocore%2Fframework%2Ftasks%2FStripTask.java;h=107575c839829d8c6ca3e7fb12f589d1c4d6032f;hb=1fa1cb752a62f624ff8e7d81c89b89b56c44dc13;hp=0f775a5c20beb4074577151e509442837f79d6bf;hpb=219e2247478e46f81b744252b13cd1df01a76756;p=mirror_edk2.git diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/StripTask.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/StripTask.java index 0f775a5c20..107575c839 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/StripTask.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/StripTask.java @@ -2,14 +2,14 @@ StripTask class. StripTask is used to call Strip.exe to strip input file. - - + + Copyright (c) 2006, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php - + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @@ -24,7 +24,8 @@ import org.apache.tools.ant.BuildException; import org.apache.tools.ant.taskdefs.Execute; import org.apache.tools.ant.taskdefs.LogStreamHandler; import org.apache.tools.ant.types.Commandline; -import org.tianocore.logger.EdkLog; + +import org.tianocore.common.logger.EdkLog; /** StripTask class. @@ -47,13 +48,13 @@ public class StripTask extends Task implements EfiDefine { // / private String outputDir = ""; - + /** * execute - * + * * StripTask execute function is to assemble tool command line & execute * tool command line - * + * * @throws BuidException */ public void execute() throws BuildException { @@ -62,7 +63,7 @@ public class StripTask extends Task implements EfiDefine { // // set Logger // - FrameworkLogger logger = new FrameworkLogger(project, "edkStrip"); + FrameworkLogger logger = new FrameworkLogger(project, "strip"); EdkLog.setLogLevel(project.getProperty("env.LOGLEVEL")); EdkLog.setLogger(logger); // @@ -72,7 +73,7 @@ public class StripTask extends Task implements EfiDefine { String command; String argument; if (path == null) { - command = "strip"; + command = "Strip"; } else { command = path + File.separatorChar + "Strip"; } @@ -107,9 +108,9 @@ public class StripTask extends Task implements EfiDefine { // EdkLog.log(EdkLog.EDK_VERBOSE, Commandline.toString(cmdline.getCommandline())); EdkLog.log(EdkLog.EDK_INFO, (new File(this.inputFile)).getName()); - + revl = runner.execute(); - + if (EFI_SUCCESS == revl) { // // command execution success @@ -129,9 +130,9 @@ public class StripTask extends Task implements EfiDefine { /** * getInputFile - * + * * This function is to get class member "inputFile". - * + * * @return string of input file name. */ public String getInputFile() { @@ -140,9 +141,9 @@ public class StripTask extends Task implements EfiDefine { /** * setComponentType - * + * * This function is to set class member "inputFile". - * + * * @param inputFile * string of input file name. */ @@ -152,9 +153,9 @@ public class StripTask extends Task implements EfiDefine { /** * getOutputFile - * + * * This function is to get class member "outputFile" - * + * * @return outputFile string of output file name. */ public String getOutputFile() { @@ -163,9 +164,9 @@ public class StripTask extends Task implements EfiDefine { /** * setOutputFile - * + * * This function is to set class member "outputFile" - * + * * @param outputFile * string of output file name. */ @@ -175,9 +176,9 @@ public class StripTask extends Task implements EfiDefine { /** * getOutputDir - * + * * This function is to get class member "outputDir" - * + * * @return outputDir string of output directory. */ public String getOutputDir() { @@ -186,9 +187,9 @@ public class StripTask extends Task implements EfiDefine { /** * setOutputDir - * + * * This function is to set class member "outputDir" - * + * * @param outputDir * string of output directory. */