- CollectPCDAction collectAction = new CollectPCDAction ();\r
- //\r
- // Collect all PCD information from FPD to MSA, and get help information from SPD.\r
- // These all information will be stored into memory database for future usage such \r
- // as autogen.\r
- //\r
- try {\r
- collectAction.perform (\r
- getProject().getProperty("WORKSPACE_DIR"),\r
- fpdFilename.getPath(),\r
- ActionMessage.MAX_MESSAGE_LEVEL\r
- );\r
- } catch (Exception exp) {\r
- throw new BuildException (String.format("Fail to do PCD preprocess from FPD file, the cause is %s", exp.getMessage()));\r
- }\r
+ String exceptionString = null;\r
+ CollectPCDAction collectAction = new CollectPCDAction ();\r
+ //\r
+ // Collect all PCD information from FPD to MSA, and get help information from SPD.\r
+ // These all information will be stored into memory database for future usage such \r
+ // as autogen.\r
+ //\r
+ try {\r
+ collectAction.perform (getProject().getProperty("WORKSPACE_DIR"),\r
+ fpdFilename.getPath(),\r
+ ActionMessage.MAX_MESSAGE_LEVEL\r
+ );\r
+ } catch (Exception exp) {\r
+ exceptionString = exp.getMessage();\r
+ if (exceptionString == null) {\r
+ exceptionString = "[Internal Error]Pcd tools catch a internel errors, Please report this bug into TianoCore or send email to Wang, scott or Lu, ken!";\r
+ }\r
+ throw new BuildException (String.format("Fail to do PCD preprocess from FPD file: %s", exceptionString));\r
+ }\r