System.out.println("Warning: this module doesn't specify a FfsFormatKey. ");\r
}\r
else {\r
- throw new BuildException("Can't find FfsFormatKey [" + buildType + "] in FPD file. "); \r
+ throw new BuildException("Can't find the FfsFormatKey [" + buildType + "] attribute in the FPD file!"); \r
}\r
\r
if (ffs == null) {\r
//\r
File buildFile = null;\r
if (msaFiles.size() > 1) {\r
- throw new BuildException("More than one MSA file under current directory. It is not allowd. ");\r
+ throw new BuildException("Having more than one MSA file in a directory is not allowed!");\r
}\r
else if (msaFiles.size() == 1 && activePlatform == null) {\r
- throw new BuildException("If try to build a single module, please set ACTIVE_PLATFORM in file [Tool/Conf/target.txt]. ");\r
+ throw new BuildException("If trying to build a single module, please set ACTIVE_PLATFORM in file [Tool/Conf/target.txt]. ");\r
}\r
else if (msaFiles.size() == 1 && activePlatform != null) {\r
//\r
// If there is no build files or FPD files or MSA files, stop build\r
//\r
else {\r
- throw new BuildException("Can't find any FPD files or MSA files in current directory. ");\r
+ throw new BuildException("Can't find any FPD or MSA files in the current directory. ");\r
}\r
\r
//\r
// Build every FPD files (PLATFORM build)\r
//\r
if (buildFile.getName().endsWith(".fpd")) {\r
- System.out.println("Start to build FPD file [" + buildFile.getPath() + "] ..>> ");\r
+ System.out.println("Processing the FPD file [" + buildFile.getPath() + "] ..>> ");\r
FpdParserTask fpdParserTask = new FpdParserTask();\r
fpdParserTask.setType(type);\r
fpdParserTask.setProject(getProject());\r
//\r
else if (buildFile.getName().endsWith(".msa")) {\r
File tmpFile = new File(GlobalData.getWorkspacePath() + File.separatorChar + activePlatform);\r
- System.out.println("Using FPD file [" + tmpFile.getPath() + "] as active platform. ");\r
- System.out.println("Start to build MSA file [" + buildFile.getPath() + "] ..>> ");\r
+ System.out.println("Using the FPD file [" + tmpFile.getPath() + "] for the active platform. ");\r
+ System.out.println("Processing the MSA file [" + buildFile.getPath() + "] ..>> ");\r
GenBuildTask genBuildTask = new GenBuildTask();\r
genBuildTask.setSingleModuleBuild(true);\r
genBuildTask.setType(type);\r
allFiles[index] = iter.next();\r
index++;\r
}\r
- System.out.println("Find " + allFiles.length + " FPD and MSA files: ");\r
+ System.out.println("Finding " + allFiles.length + " FPD and MSA files: ");\r
for (int i = 0; i < allFiles.length; i++) {\r
System.out.println("[" + (i + 1) + "]: " + allFiles[i].getName());\r
}\r
\r
boolean flag = true;\r
- System.out.print("Please select one file to build:[1] ");\r
+ System.out.print("Please select one of the following FPD files to build:[1] ");\r
do{\r
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r
try {\r
str = getValue("ACTIVE_PLATFORM", targetFileInfo);\r
if (str != null && ! str.trim().equals("")) {\r
if ( ! str.endsWith(".fpd")) {\r
- throw new BuildException("FPD file's file extension must be \".fpd\"");\r
+ throw new BuildException("FPD file's extension must be \".fpd\"!");\r
}\r
activePlatform = str;\r
}\r
String packageGuid = getProject().getProperty("PACKAGE_GUID");\r
String packageVersion = getProject().getProperty("PACKAGE_VERSION");\r
if (moduleGuid == null || packageGuid == null) {\r
- throw new BuildException("GenBuild parameters error. ");\r
+ throw new BuildException("GenBuild parameter error.");\r
}\r
PackageIdentification packageId = new PackageIdentification(packageGuid, packageVersion);\r
moduleId = new ModuleIdentification(moduleGuid, moduleVersion);\r
if (moduleSupportedArchs != null) {\r
for (int k = 0; k < archList.length; k++) {\r
if ( ! moduleSupportedArchs.contains(archList[k])) {\r
- throw new BuildException("ARCH [" + archList[k] + "] is not supported by " + moduleId + ". " + moduleId + " only supports [" + moduleSupportedArchs + "].");\r
+ throw new BuildException("Specified architecture [" + archList[k] + "] is not supported by " + moduleId + ". The module " + moduleId + " only supports [" + moduleSupportedArchs + "] architectures.");\r
}\r
}\r
}\r
// Whether the module is built before\r
//\r
if (moduleId.isLibrary() == false && GlobalData.hasFpdModuleSA(fpdModuleId) == false) {\r
- System.out.println("\nWARNING: " + moduleId + " for " + archList[k] + " is not found in current platform\n");\r
+ System.out.println("\nWARNING: " + moduleId + " for " + archList[k] + " was not found in current platform FPD file!\n");\r
continue;\r
} else if (GlobalData.isModuleBuilt(fpdModuleId)) {\r
return;\r
// don't do anything if no tools found\r
// \r
if (GlobalData.isCommandSet(targetList[i], toolchainList[j], archList[k]) == false) {\r
- System.out.println("Warning: No build issued. No tools found for [target=" + targetList[i] + " toolchain=" + toolchainList[j] + " arch=" + archList[k] + "]\n");\r
+ System.out.println("Warning: No build issued. No tools were found for [target=" + targetList[i] + " toolchain=" + toolchainList[j] + " arch=" + archList[k] + "]\n");\r
continue;\r
}\r
\r
String filename = getProject().getProperty("PLATFORM_FILE");\r
\r
if (filename == null){\r
- throw new BuildException("Plese set ACTIVE_PLATFORM if you want to build a single module. ");\r
+ throw new BuildException("Please set ACTIVE_PLATFORM in the file: Tools/Conf/target.txt if you want to build a single module!");\r
}\r
\r
PlatformIdentification platformId = GlobalData.getPlatform(filename);\r
// then call the exist BaseName_build.xml directly.\r
//\r
if (moduleId.getModuleType().equalsIgnoreCase("USER_DEFINED")) {\r
- GlobalData.log.info("Call user-defined " + moduleId.getName() + "_build.xml");\r
+ GlobalData.log.info("Calling user-defined " + moduleId.getName() + "_build.xml");\r
Ant ant = new Ant();\r
ant.setProject(getProject());\r
ant.setAntfile(getProject().getProperty("MODULE_DIR") + File.separatorChar + moduleId.getName() + "_build.xml");\r
// then call the exist BaseName_build.xml directly.\r
//\r
if (moduleId.getModuleType().equalsIgnoreCase("USER_DEFINED")) {\r
- GlobalData.log.info("Call user-defined " + moduleId.getName() + "_build.xml");\r
+ GlobalData.log.info("Calling user-defined " + moduleId.getName() + "_build.xml");\r
Ant ant = new Ant();\r
ant.setProject(getProject());\r
ant.setAntfile(getProject().getProperty("MODULE_DIR") + File.separatorChar + moduleId.getName() + "_build.xml");\r
/// The information at the header of <em>build.xml</em>.\r
///\r
private String info = "DO NOT EDIT \n"\r
- + "File auto-generated by build utility\n"\r
+ + "This file is auto-generated by the build utility\n"\r
+ "\n"\r
+ "Abstract:\n"\r
- + "Auto-generated ANT build file for building of EFI Modules/Platforms\n";\r
+ + "Auto-generated ANT build file for build EFI Modules and Platforms\n";\r
\r
private FpdModuleIdentification fpdModuleId;\r
\r
xformer.setOutputProperty(OutputKeys.INDENT, "yes");\r
xformer.transform(source, result);\r
} catch (Exception ex) {\r
- throw new BuildException("Module [" + fpdModuleId.getModule().getName() + "] generating build file failed.\n" + ex.getMessage());\r
+ throw new BuildException("Generating the module [" + fpdModuleId.getModule().getName() + "] build.xml file failed!.\n" + ex.getMessage());\r
}\r
}\r
\r
libGenAutogenH();\r
} catch (Exception e) {\r
throw new BuildException(\r
- "Faile to create library AutoGen.c & AutoGen.h!\n"\r
+ "Failed to create library AutoGen.c & AutoGen.h!\n"\r
+ e.getMessage());\r
}\r
}\r
libClassList[i]);\r
if (includerName == null) {\r
throw new AutoGenException("Can not find library class ["\r
- + libClassList[i] + "] declaration in every packages. ");\r
+ + libClassList[i] + "] declaration in any SPD package. ");\r
}\r
for (int j = 0; j < includerName.length; j++) {\r
String includeNameStr = includerName[j];\r
if (pkgHeader == null) {\r
throw new AutoGenException("Can not find package ["\r
+ packageNameList[i]\r
- + "] declaration in every packages. ");\r
+ + "] declaration in any SPD package. ");\r
} else if (!pkgHeader.equalsIgnoreCase("")) {\r
includeStr = CommonDefinition.include + " <" + pkgHeader\r
+ ">\r\n";\r
case CommonDefinition.ModuleTypePeiCore:\r
if (entryPointList == null ||entryPointList.length != 1 ) {\r
throw new BuildException(\r
- "Module type = 'PEI_CORE', only have one module entry point!");\r
+ "Module type = 'PEI_CORE', can have only one module entry point!");\r
} else {\r
fileBuffer.append("EFI_STATUS\r\n");\r
fileBuffer.append("EFIAPI\r\n");\r
fileBuffer.append("const UINT32 _gUefiDriverRevision = 0;\r\n");\r
if (entryPointList == null || entryPointList.length != 1) {\r
throw new BuildException(\r
- "Module type = 'DXE_CORE', only have one module entry point!");\r
+ "Module type = 'DXE_CORE', can have only one module entry point!");\r
} else {\r
\r
fileBuffer.append("VOID\r\n");\r
// If can't find Ppi GUID declaration in every package\r
//\r
throw new AutoGenException("Can not find Ppi GUID ["\r
- + ppiKeyWord + "] declaration in every packages. ");\r
+ + ppiKeyWord + "] declaration in any SPD package!");\r
}\r
}\r
}\r
// If can't find protocol GUID declaration in every package\r
//\r
throw new BuildException("Can not find protocol Guid ["\r
- + protocolKeyWord + "] declaration in every packages. ");\r
+ + protocolKeyWord + "] declaration in any SPD package!");\r
}\r
}\r
}\r
// If can't find GUID declaration in every package\r
//\r
throw new AutoGenException("Can not find Guid [" + guidKeyWord\r
- + "] declaration in every packages. ");\r
+ + "] declaration in any SPD package. ");\r
}\r
\r
}\r
fileBuffer.append(" (ImageHandle, SystemTable);\r\n");\r
break;\r
default:\r
- EdkLog.log(EdkLog.EDK_INFO,"Autogen don't know how to deal with module type -"+ moduleType + " !");\r
+ EdkLog.log(EdkLog.EDK_INFO,"Autogen doesn't know how to deal with module type - " + moduleType + "!");\r
}\r
fileBuffer.append(" ASSERT_EFI_ERROR (Status);\r\n");\r
}\r
fis.close();\r
fos.close();\r
}else {\r
- throw new AutoGenException("The flashMap.h file don't exist!!");\r
+ throw new AutoGenException("The file, flashMap.h doesn't exist!");\r
}\r
} catch (Exception e){\r
throw new AutoGenException(e.getMessage());\r
if (this.libInstanceMap.containsKey(libraryList[i])) {\r
throw new Exception(\r
libraryList[i].getName()\r
- + "this library instance is already exist, please check you library instance list!");\r
+ + "this library instance already exists, please check the library instance list!");\r
} else {\r
this.libInstanceMap.put(libraryList[i], classStr);\r
}\r
System.out.println(libClassDeclList[j]\r
+ " class is already implement by "\r
+ this.libClassMap.get(libClassDeclList[j]));\r
- throw new Exception(libClassDeclList\r
- + " is already have library instance!");\r
+ throw new Exception("Library Class: " + libClassDeclList\r
+ + " already has a library instance!");\r
} else {\r
this.libClassMap.put(libClassDeclList[j], libraryList[i]);\r
}\r
return guid;\r
} else {\r
System.out\r
- .println("Check GUID Value, it don't conform to the schema!!!");\r
+ .println("Check GUID Value, It doesn't conform to the registry format specified in the schema!!!");\r
return "0";\r
\r
}\r
return desList;\r
}\r
\r
-}
\ No newline at end of file
+}\r
// Remove !!\r
if ( fpdFile == null) {\r
if (platformName == null) {\r
- throw new BuildException("FpdParserTask parameter error. Please specify platform name or FPD file. ");\r
+ throw new BuildException("FpdParserTask parameter error. Please specify either the platform name or FPD file!");\r
}\r
platformId = GlobalData.getPlatformByName(platformName);\r
fpdFile = platformId.getFpdFile();\r
bw.close();\r
fw.close();\r
} catch (Exception e) {\r
- throw new BuildException("Generate FV file [" + fvFile.getPath() + "] failed. \n" + e.getMessage());\r
+ throw new BuildException("Generation of the FV file [" + fvFile.getPath() + "] failed!\n" + e.getMessage());\r
}\r
}\r
}\r
XmlObject doc = XmlObject.Factory.parse(fpdFile);\r
\r
if (!doc.validate()) {\r
- throw new BuildException("Platform Surface Area file [" + fpdFile.getPath() + "] is invalid.");\r
+ throw new BuildException("Platform Surface Area file [" + fpdFile.getPath() + "] format is invalid!");\r
}\r
\r
Map<String, XmlObject> map = new HashMap<String, XmlObject>();\r
PlatformPcdPreprocessActionForBuilding ca = new PlatformPcdPreprocessActionForBuilding();\r
ca.perform(platformId.getFpdFile().getPath(), ActionMessage.NULL_MESSAGE_LEVEL);\r
} catch (Exception e) {\r
- throw new BuildException("Load FPD file [" + fpdFile.getPath() + "] error. \n" + e.getMessage());\r
+ throw new BuildException("Parsing of the FPD file [" + fpdFile.getPath() + "] failed!\n" + e.getMessage());\r
}\r
}\r
\r
private Project project;\r
\r
private String info = "DO NOT EDIT \n" \r
- + "File auto-generated by build utility\n" \r
+ + "This file is auto-generated by the build utility\n" \r
+ "\n" \r
+ "Abstract:\n"\r
- + "Auto-generated ANT build file for building of EFI Modules/Platforms\n";\r
+ + "Auto-generated ANT build file for building EFI Modules and Platforms\n";\r
\r
public PlatformBuildFileGenerator(Project project, Map<FpdModuleIdentification, String> outfiles, boolean isUnified){\r
this.project = project;\r
xformer.setOutputProperty(OutputKeys.INDENT, "yes");\r
xformer.transform(source, result);\r
} catch (Exception ex) {\r
- throw new BuildException("Generate " + platformName + "_build.xml failed. \n" + ex.getMessage());\r
+ throw new BuildException("Generation of the " + platformName + "_build.xml failed!\n" + ex.getMessage());\r
}\r
}\r
\r
//\r
// Deep Clean Target\r
//\r
- root.appendChild(document.createComment("Clean All target"));\r
+ root.appendChild(document.createComment("Target: cleanall"));\r
Element ele = document.createElement("target");\r
ele.setAttribute("name", "cleanall");\r
\r
//\r
// User Extensions\r
//\r
- root.appendChild(document.createComment("Pre Build Processing"));\r
+ root.appendChild(document.createComment("Pre-Build Processing"));\r
Element ele = document.createElement("target");\r
ele.setAttribute("name", "prebuild");\r
\r
//\r
// User Extensions\r
//\r
- root.appendChild(document.createComment("Post Build Processing"));\r
+ root.appendChild(document.createComment("Post-Build Processing"));\r
Element ele = document.createElement("target");\r
ele.setAttribute("name", "postbuild");\r
\r
// CONF dir + tools definition file name\r
//\r
File toolsDefFile = new File(workspaceDir + File.separatorChar + toolsDefFilename);\r
- System.out.println("Using file [" + toolsDefFile.getPath() + "] as tools definition file. ");\r
+ System.out.println("Using tool definiton file [" + toolsDefFile.getPath() + "].");\r
toolsDef = new ToolChainConfig(toolsDefFile);\r
\r
//\r
// validate FrameworkDatabaseFile\r
//\r
if (! db.validate()) {\r
- throw new BuildException("Framework Database file [" + dbFile.getPath() + "] is invalid.");\r
+ throw new BuildException("Framework Database file [" + dbFile.getPath() + "] format is invalid!");\r
}\r
//\r
// Get package list\r
// Verify FPD file, if is invalid, throw Exception\r
//\r
if (! fpdDoc.validate()) {\r
- throw new BuildException("Framework Platform Surface Area file [" + fpdFile.getPath() + "] is invalid. ");\r
+ throw new BuildException("Framework Platform Surface Area file [" + fpdFile.getPath() + "] format is invalid!");\r
}\r
//\r
// We can change Map to XmlObject\r
}\r
}\r
} catch (Exception e) {\r
- throw new BuildException("Parse workspace Database [" + dbFile.getPath() + "] Error.\n" + e.getMessage());\r
+ throw new BuildException("Parse WORKSPACE Database file [" + dbFile.getPath() + "] Error.\n" + e.getMessage());\r
}\r
}\r
\r
}\r
}\r
if (msaFile == null){\r
- throw new BuildException("Can't find Module [" + moduleId.getName() + "] in all packages. ");\r
+ throw new BuildException("Can't find Module [" + moduleId.getName() + "] in any SPD package!");\r
}\r
else {\r
return msaFile;\r
}\r
}\r
if (packageId == null){\r
- throw new BuildException("Can't find Module [" + moduleId.getName() + "] in all packages. ");\r
+ throw new BuildException("Can't find Module [" + moduleId.getName() + "] in any SPD package!");\r
}\r
else {\r
return packageId;\r
\r
public synchronized static Map<String, XmlObject> getNativeMsa(File msaFile) throws BuildException {\r
if (! msaFile.exists()) {\r
- throw new BuildException("Surface Area file [" + msaFile.getPath() + "] can't found.");\r
+ throw new BuildException("Module Surface Area file [" + msaFile.getPath() + "] can't be found!");\r
}\r
try {\r
ModuleSurfaceAreaDocument doc = (ModuleSurfaceAreaDocument)XmlObject.Factory.parse(msaFile);\r
// Validate File if they accord with XML Schema\r
//\r
if ( ! doc.validate()){\r
- throw new BuildException("Module Surface Area file [" + msaFile.getPath() + "] is invalid.");\r
+ throw new BuildException("Module Surface Area file [" + msaFile.getPath() + "] format is invalid!");\r
}\r
//\r
// parse MSA file\r
// If can't find library class declaration in every package\r
//\r
throw new BuildException("Can not find library class [" + name\r
- + "] declaration in every packages. ");\r
+ + "] declaration in any SPD package!");\r
}\r
\r
/**\r
return platformId;\r
}\r
}\r
- throw new BuildException("Can't find platform [" + name + "] in current workspace database. ");\r
+ throw new BuildException("Can't find platform [" + name + "] in the current WORKSPACE database!");\r
}\r
\r
public synchronized static PlatformIdentification getPlatform(String filename) throws BuildException {\r
return platformId;\r
}\r
}\r
- throw new BuildException("Can't find platform file [" + filename + "] in current workspace database. ");\r
+ throw new BuildException("Can't find platform file [" + filename + "] in the current WORKSPACE database!");\r
}\r
\r
public synchronized static PackageIdentification refreshPackageIdentification(PackageIdentification packageId) throws BuildException {\r
return packageId;\r
}\r
}\r
- throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " under current workspace. ");\r
+ throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " in the current workspace!");\r
}\r
\r
public synchronized static ModuleIdentification refreshModuleIdentification(ModuleIdentification moduleId) throws BuildException {\r
moduleId.setPackage(packageId);\r
Spd spd = spdTable.get(packageId);\r
if (spd == null) {\r
- throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " under current workspace. ");\r
+ throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " in the current workspace!");\r
}\r
Set<ModuleIdentification> modules = spd.getModules();\r
Iterator<ModuleIdentification> iter = modules.iterator();\r
return moduleId;\r
}\r
}\r
- throw new BuildException("Can't find module GUID value " + moduleId.getGuid() + " in " + packageId + " under current workspace. ");\r
+ throw new BuildException("Can't find module GUID value " + moduleId.getGuid() + " in package, " + packageId + ", in the current workspace!");\r
}\r
\r
public synchronized static Set<PackageIdentification> getPackageList(){\r
} else {\r
File srcFile = new File(srcFileName);\r
if (!srcFile.exists()) {\r
- throw new BuildException(srcFileName + " doesn't exist !!!");\r
+ throw new BuildException("Source File name: " + srcFileName + " doesn't exist!!!");\r
}\r
srcTimeStamp = srcFile.lastModified();\r
timeStampCache.put(srcFileName, new Long(srcTimeStamp));\r
// If specified package file not exists\r
//\r
if ( ! packageFile.exists()) {\r
- throw new BuildException("Package file [" + packageFile.getPath() + "] not exists. ");\r
+ throw new BuildException("Package file [" + packageFile.getPath() + "] does not exist!");\r
}\r
try {\r
XmlObject spdDoc = XmlObject.Factory.parse(packageFile);\r
// Verify SPD file, if is invalid, throw Exception\r
//\r
if (! spdDoc.validate()) {\r
- throw new BuildException("Package Surface Area file [" + packageFile.getPath() + "] is invalid. ");\r
+ throw new BuildException("Package Surface Area file [" + packageFile.getPath() + "] format is invalid!");\r
}\r
// We can change Map to XmlObject\r
Map<String, XmlObject> spdDocMap = new HashMap<String, XmlObject>();\r
moduleId.setPackage(packageId);\r
moduleId.setMsaFile(msaFile);\r
if (msaInfo.containsKey(moduleId)) {\r
- throw new BuildException("Find two modules with the same GUID and Version in " + packageId + ". They are [" + msaInfo.get(moduleId) + "] and [" + msaFile + "] ");\r
+ throw new BuildException("Found two modules with the same GUID and Version in package " + packageId + ".\nThey are module [" + msaInfo.get(moduleId) + "] and MSA file [" + msaFile + "]!");\r
}\r
msaInfo.put(moduleId, msaFile);\r
}\r
}\r
catch (Exception e) {\r
e.setStackTrace(e.getStackTrace());\r
- throw new BuildException("Parse package description file [" + packageId.getSpdFile() + "] Error.\n"\r
+ throw new BuildException("Parse of the package description file [" + packageId.getSpdFile() + "] failed!\n"\r
+ e.getMessage());\r
}\r
}\r
*/\r
public void execute() throws BuildException {\r
if (name == null || value == null) {\r
- throw new BuildException("Name or value must not null.");\r
+ throw new BuildException("Name or value cannot be null.");\r
}\r
getProject().setProperty(name, value);\r
}\r
}\r
\r
ActionMessage.debug(this,\r
- "PCD memory database contains " + dbManager.getDBSize() + " PCD tokens");\r
+ "PCD memory database contains " + dbManager.getDBSize() + " PCD tokens.");\r
\r
generateAutogenForModule();\r
}\r
// All library's PCD should instanted in module's <ModuleSA> who\r
// use this library instance. If not, give errors.\r
//\r
- throw new BuildActionException (String.format("Module %s use library instance %s, the PCD %s " +\r
- "is required by this library instance, but can not find " +\r
- "it in the %s's <ModuleSA> in FPD file!",\r
+ throw new BuildActionException (String.format("Module %s using library instance %s; the PCD %s " +\r
+ "is required by this library instance, but can not be found " +\r
+ "in the %s's <ModuleSA> in the FPD file!",\r
MemoryDatabaseManager.CurrentModuleName,\r
moduleName,\r
pcdNameArrayInMsa[index],\r
case POINTER:\r
return "UINT8";\r
default:\r
- throw new EntityException("Unknown type in getDataTypeCDeclaration");\r
+ throw new EntityException("Unknown DatumType in getDataTypeCDeclaration");\r
}\r
}\r
\r
retStr = retStr +"\r\n" + str;\r
}\r
} catch (Exception ex) {\r
- throw new EntityException("Fatal error when generating PcdDatabase Common Definitions");\r
+ throw new EntityException("Fatal error when generating PcdDatabase Common Definitions!");\r
}\r
\r
return retStr;\r
retStr = retStr +"\r\n" + str;\r
}\r
} catch (Exception ex) {\r
- throw new EntityException("Fatal error when generating PcdDatabase Dxe Definitions");\r
+ throw new EntityException("Fatal error when generating PcdDatabase Dxe Definitions!");\r
}\r
\r
return retStr;\r
retStr = retStr +"\r\n" + str;\r
}\r
} catch (Exception ex) {\r
- throw new EntityException("Fatal error when generating PcdDatabase Pei Definitions");\r
+ throw new EntityException("Fatal error when generating PcdDatabase Pei Definitions!");\r
}\r
\r
return retStr;\r
if ((uuidString.charAt(0) == '0') && ((uuidString.charAt(1) == 'x') || (uuidString.charAt(1) == 'X'))) {\r
splitStringArray = uuidString.split("," );\r
if (splitStringArray.length != 11) {\r
- throw new EntityException ("[FPD file error] Wrong format for UUID string: " + uuidString);\r
+ throw new EntityException ("[FPD file error] Wrong format for GUID string: " + uuidString);\r
}\r
\r
//\r
\r
return UUID.fromString(uuidString);\r
}\r
-}
\ No newline at end of file
+}\r
\r
**/\r
public void execute() throws PlatformPcdPreprocessBuildException {\r
- String errorMessageHeader = "Fail to initialize Pcd memory database for building. Because:";\r
+ String errorMessageHeader = "Failed to initialize the Pcd memory database because: ";\r
String errorsForPreprocess = null;\r
\r
//\r
try {\r
tokenSpaceStrRet = GlobalData.getGuidInfoFromCname(guidCName);\r
} catch ( Exception e ) {\r
- throw new PlatformPcdPreprocessException ("Failed get Guid CName " + guidCName + "from SPD file!");\r
+ throw new PlatformPcdPreprocessException ("Failed to get Guid CName " + guidCName + " from the SPD file!");\r
}\r
return tokenSpaceStrRet;\r
}\r
\r
dynamicPcdBuildDefinitions = fpdDocInstance.getPlatformSurfaceArea().getDynamicPcdBuildDefinitions();\r
if (dynamicPcdBuildDefinitions == null) {\r
- exceptionString = String.format("[FPD file error] There are no <PcdDynamicBuildDescriptions> in FPD file but contains Dynamic type "+\r
- "PCD entry %s in module %s!",\r
+ exceptionString = String.format("[FPD file error] There are no <PcdDynamicBuildDescriptions> elements in FPD file but there are Dynamic type "+\r
+ "PCD entries %s in module %s!",\r
token.cName,\r
moduleName);\r
putError(exceptionString);\r
File file = null;\r
\r
if (fpdFilePath == null) {\r
- throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be blank for CollectPCDAtion!");\r
+ throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be empty for CollectPCDAtion!");\r
}\r
\r
if (fpdFilePath.length() == 0) {\r
- throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be blank for CollectPCDAtion!");\r
+ throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be empty for CollectPCDAtion!");\r
}\r
\r
file = new File(fpdFilePath);\r
valueList.add(str.substring(index + 1).trim());\r
}\r
} catch (Exception e) {\r
- throw new EdkException("Process file [" + filename + "] error. \n" + e.getMessage());\r
+ throw new EdkException("ERROR Processing file [" + filename + "].\n" + e.getMessage());\r
}\r
\r
String[][] definitions = new String[2][keyList.size()];\r
map.put(key, value);\r
}\r
} catch (Exception e) {\r
- throw new EdkException("Process file [" + ConfigFile.getAbsolutePath() + "] error. \n" + e.getMessage());\r
+ throw new EdkException("ERROR Processing file [" + ConfigFile.getAbsolutePath() + "].\n" + e.getMessage());\r
}\r
\r
return map;\r