diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-22 09:59:49 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-22 09:59:49 +0000 |
commit | 89da7ebac51e9adfe0c419b0d4a68a5672c2fb87 (patch) | |
tree | e0b021a34a48563bb8920432afbc0f03ad11a79a /Tools/Java/Source/GenBuild/org/tianocore/build/id/ModuleIdentification.java | |
parent | 1d67f00e73e8078f3f4baa2090b5d394c9b32d6b (diff) | |
download | edk2-89da7ebac51e9adfe0c419b0d4a68a5672c2fb87.zip edk2-89da7ebac51e9adfe0c419b0d4a68a5672c2fb87.tar.gz edk2-89da7ebac51e9adfe0c419b0d4a68a5672c2fb87.tar.bz2 |
Rewrote the error message output when module cannnot be found in any packages.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2133 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/GenBuild/org/tianocore/build/id/ModuleIdentification.java')
-rw-r--r-- | Tools/Java/Source/GenBuild/org/tianocore/build/id/ModuleIdentification.java | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/id/ModuleIdentification.java b/Tools/Java/Source/GenBuild/org/tianocore/build/id/ModuleIdentification.java index 87024d1..c2d9acc 100644 --- a/Tools/Java/Source/GenBuild/org/tianocore/build/id/ModuleIdentification.java +++ b/Tools/Java/Source/GenBuild/org/tianocore/build/id/ModuleIdentification.java @@ -129,12 +129,33 @@ public class ModuleIdentification extends Identification { }
public String toString() {
- if (version == null || version.trim().equalsIgnoreCase("")) {
- return "Module [" + name + "] in " + packageId;
+ String nameString;
+ String versionString;
+ String packageString;
+
+ if (name != null && name != "") {
+ nameString = name;
+ } else {
+ if (guid != null && guid != "") {
+ nameString = guid;
+ } else {
+ nameString = "UNKNOWN";
+ }
}
- else {
- return "Module [" + name + " " + version + "] in " + packageId;
+
+ if (version != null) {
+ versionString = version;
+ } else {
+ versionString = "";
}
+
+ if (packageId != null) {
+ packageString = packageId.toString();
+ } else {
+ packageString = "Package [UNKNOWN]";
+ }
+
+ return "Module [" + nameString + versionString + "] in " + packageString;
}
/**
|