Failed to creat AutoGen.c & AutoGen.h.\r
**/\r
public void genAutogen() throws EdkException {\r
- try {\r
- //\r
- // If outputPath do not exist, create it.\r
- //\r
- File path = new File(outputPath);\r
- path.mkdirs();\r
- } catch (Exception e) {\r
- throw new AutoGenException(\r
- "Failed to create "\r
- + outputPath + " directory");\r
- }\r
- \r
+ //\r
+ // If outputPath do not exist, create it.\r
+ //\r
+ File path = new File(outputPath);\r
+ path.mkdirs();\r
+ \r
//\r
// Check current is library or not, then call the corresponding\r
// function.\r
import org.tianocore.build.global.SurfaceAreaQuery;\r
import org.tianocore.build.id.ModuleIdentification;\r
import org.tianocore.common.exception.EdkException;\r
-\r
+import org.tianocore.common.logger.EdkLog;\r
/**\r
This class This class is to reorder library instance sequence according to\r
library dependence.\r
if (libClassDeclList != null) {\r
for (int j = 0; j < libClassDeclList.length; j++) {\r
if (this.libClassMap.containsKey(libClassDeclList[j])) {\r
- System.out.println(libClassDeclList[j]\r
+ EdkLog.log(EdkLog.EDK_ERROR,libClassDeclList[j]\r
+ " class is already implement by "\r
+ this.libClassMap.get(libClassDeclList[j]));\r
throw new AutoGenException("Library Class: " + libClassDeclList\r