try {\r
processGenBuild();\r
} catch (PcdAutogenException e) {\r
- //\r
- // Add more logic process here\r
- //\r
- throw new BuildException(e.getMessage());\r
+ BuildException buildException = new BuildException(e.getMessage());\r
+ buildException.setStackTrace(e.getStackTrace());\r
+ throw buildException;\r
} catch (AutoGenException e) {\r
- //\r
- // Add more logic process here\r
- //\r
- throw new BuildException(e.getMessage());\r
+ BuildException buildException = new BuildException(e.getMessage());\r
+ buildException.setStackTrace(e.getStackTrace());\r
+ throw buildException;\r
} catch (PlatformPcdPreprocessBuildException e) {\r
- //\r
- // Add more logic process here\r
- //\r
- throw new BuildException(e.getMessage());\r
+ BuildException buildException = new BuildException(e.getMessage());\r
+ buildException.setStackTrace(e.getStackTrace());\r
+ throw buildException;\r
} catch (GenBuildException e) {\r
- //\r
- // Add more logic process here\r
- //\r
- throw new BuildException(e.getMessage());\r
+ BuildException buildException = new BuildException(e.getMessage());\r
+ buildException.setStackTrace(e.getStackTrace());\r
+ throw buildException;\r
} catch (EdkException e) {\r
- //\r
- // Add more logic process here\r
- //\r
- throw new BuildException(e.getMessage());\r
+ BuildException buildException = new BuildException(e.getMessage());\r
+ buildException.setStackTrace(e.getStackTrace());\r
+ throw buildException;\r
}\r
}\r
\r
// don't do anything if no tools found\r
//\r
if (GlobalData.isCommandSet(targetList[i], toolchainList[j], archList[k]) == false) {\r
- EdkLog.log(this, EdkLog.EDK_WARNING, "Warning: No build issued. No tools were found for [target=" + targetList[i] + " toolchain=" + toolchainList[j] + " arch=" + archList[k] + "]\n");\r
+ EdkLog.log(this, EdkLog.EDK_WARNING, "Warning: No build issued. No tools found for [target=" + targetList[i] + " toolchain=" + toolchainList[j] + " arch=" + archList[k] + "]\n");\r
continue;\r
}\r
\r
String cmdPath = GlobalData.getCommandSetting(key, fpdModuleId);\r
key[4] = ToolDefinitions.TOOLS_DEF_ATTRIBUTE_NAME;\r
String cmdName = GlobalData.getCommandSetting(key, fpdModuleId);\r
+ if (cmdName.length() == 0) {\r
+ EdkLog.log(this, EdkLog.EDK_VERBOSE, "Warning: " + cmd[m] + " hasn't been defined!");\r
+ getProject().setProperty(cmd[m], "");\r
+ continue;\r
+ }\r
File cmdFile = new File(cmdPath + File.separatorChar + cmdName);\r
getProject().setProperty(cmd[m], cmdFile.getPath().replaceAll("(\\\\)", "/"));\r
\r