ModifyInfTask class.\r
\r
ModifyInfTask is used to call Modify.exe to generate inf file.\r
- \r
- \r
+\r
+\r
Copyright (c) 2006, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
- \r
+\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
import org.apache.tools.ant.taskdefs.Execute;\r
import org.apache.tools.ant.taskdefs.LogStreamHandler;\r
import org.apache.tools.ant.types.Commandline;\r
-import org.tianocore.logger.EdkLog;\r
+\r
+import org.tianocore.common.logger.EdkLog;\r
\r
/**\r
ModifyInfTask class.\r
/// tool name\r
///\r
private String toolName = "ModifyInf";\r
- \r
+\r
///\r
/// input FV inf file\r
///\r
\r
///\r
/// Output dir\r
- /// \r
+ ///\r
private String outputDir = "";\r
- \r
+\r
/**\r
* execute\r
- * \r
+ *\r
* ModifyInfTask execute function is to assemble tool command line & execute\r
* tool command line\r
- * \r
+ *\r
* @throws BuidException\r
*/\r
public void execute() throws BuildException {\r
File file = new File(outputFVInfFileName);\r
if (!file.isAbsolute() && (!this.outputDir.equalsIgnoreCase(""))) {\r
argument = this.inputFVInfFileName +\r
- this.outputDir + \r
+ this.outputDir +\r
File.separatorChar +\r
this.outputFVInfFileName +\r
this.patternStr;\r
} else {\r
- argument = this.inputFVInfFileName + \r
+ argument = this.inputFVInfFileName +\r
this.outputFVInfFileName +\r
this.patternStr;\r
}\r
\r
/**\r
* getinputFVInfFileName\r
- * \r
+ *\r
* This function is to get class member "inputFVInfFileName".\r
- * \r
+ *\r
* @return string of input inf file name.\r
*/\r
public String getinputFVInfFileName() {\r
\r
/**\r
* setinputFVInfFileName\r
- * \r
+ *\r
* This function is to set class member "inputFVInfFileName".\r
- * \r
+ *\r
* @param inputFile\r
* string of input inf file name.\r
*/\r
\r
/**\r
* getoutputFVInfFileName\r
- * \r
+ *\r
* This function is to get class member "outputFVInfFileName"\r
- * \r
+ *\r
* @return outputFVInfFileName string of output inf file name.\r
*/\r
public String getoutputFVInfFileName() {\r
\r
/**\r
* setoutputFVInfFileName\r
- * \r
+ *\r
* This function is to set class member "outputFVInfFileName"\r
- * \r
+ *\r
* @param outputFVInfFileName\r
* string of output inf file name.\r
*/\r
\r
/**\r
* getpatternStr\r
- * \r
+ *\r
* This function is to get class member "patternStr"\r
- * \r
+ *\r
* @return patternStr string of pattern.\r
*/\r
public String getpatternStr() {\r
\r
/**\r
* setpatternStr\r
- * \r
+ *\r
* This function is to set class member "patternStr"\r
- * \r
+ *\r
* @param patternStr\r
* string of patternStr.\r
*/\r
\r
/**\r
* getoutputDir\r
- * \r
+ *\r
* This function is to get class member "outputDir"\r
- * \r
+ *\r
* @return outputDir string of output directory.\r
*/\r
public String getoutputDir() {\r
\r
/**\r
* setoutputDir\r
- * \r
+ *\r
* This function is to set class member "outputDir"\r
- * \r
+ *\r
* @param patternStr\r
* string of output directory.\r
*/\r