Report error messages more precise.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1323 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -412,7 +412,7 @@ public class GlobalData {
|
|||||||
return msaMap;
|
return msaMap;
|
||||||
}
|
}
|
||||||
catch (Exception ex){
|
catch (Exception ex){
|
||||||
throw new BuildException(ex.getMessage());
|
throw new BuildException("Parsing MSA file [" + msaFile.getPath() + "] error. \n" + ex.getMessage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -598,7 +598,7 @@ public class GlobalData {
|
|||||||
return packageId;
|
return packageId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " in the current workspace!");
|
throw new BuildException("Can't find package GUID value " + packageId.toGuidString() + " in the current workspace!");
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized static ModuleIdentification refreshModuleIdentification(ModuleIdentification moduleId) throws BuildException {
|
public synchronized static ModuleIdentification refreshModuleIdentification(ModuleIdentification moduleId) throws BuildException {
|
||||||
@@ -606,7 +606,7 @@ public class GlobalData {
|
|||||||
moduleId.setPackage(packageId);
|
moduleId.setPackage(packageId);
|
||||||
Spd spd = spdTable.get(packageId);
|
Spd spd = spdTable.get(packageId);
|
||||||
if (spd == null) {
|
if (spd == null) {
|
||||||
throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " in the current workspace!");
|
throw new BuildException("Can't find package GUID value " + packageId.toGuidString() + " in the current workspace!");
|
||||||
}
|
}
|
||||||
Set<ModuleIdentification> modules = spd.getModules();
|
Set<ModuleIdentification> modules = spd.getModules();
|
||||||
Iterator<ModuleIdentification> iter = modules.iterator();
|
Iterator<ModuleIdentification> iter = modules.iterator();
|
||||||
@@ -619,7 +619,7 @@ public class GlobalData {
|
|||||||
return moduleId;
|
return moduleId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new BuildException("Can't find module GUID value " + moduleId.getGuid() + " in package, " + packageId + ", in the current workspace!");
|
throw new BuildException("Can't find module GUID value " + moduleId.toGuidString() + " in " + packageId + " under the current workspace!");
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized static Set<PackageIdentification> getPackageList(){
|
public synchronized static Set<PackageIdentification> getPackageList(){
|
||||||
|
@@ -198,8 +198,7 @@ public class Spd {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.setStackTrace(e.getStackTrace());
|
throw new BuildException("Parse of the package description file [" + packageFile.getPath() + "] failed!\n"
|
||||||
throw new BuildException("Parse of the package description file [" + packageId.getSpdFile() + "] failed!\n"
|
|
||||||
+ e.getMessage());
|
+ e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -110,6 +110,15 @@ public class Identification {
|
|||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String toGuidString() {
|
||||||
|
if (version == null || version.trim().equalsIgnoreCase("")) {
|
||||||
|
return "[" + guid + "]";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "[" + guid + "] and version [" + version + "]";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
@see java.lang.Object#hashCode()
|
@see java.lang.Object#hashCode()
|
||||||
**/
|
**/
|
||||||
|
Reference in New Issue
Block a user