diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-07 09:07:19 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-07 09:07:19 +0000 |
commit | af22c12f37324026609f5349421cf216a9f38fca (patch) | |
tree | f377ab52e936b2e997b1c424f1b50256bcd172bd /Tools/Source/MigrationTools | |
parent | 8cf2c0a7d7d92885619ab9668b04f923b3199300 (diff) | |
download | edk2-af22c12f37324026609f5349421cf216a9f38fca.zip edk2-af22c12f37324026609f5349421cf216a9f38fca.tar.gz edk2-af22c12f37324026609f5349421cf216a9f38fca.tar.bz2 |
Randomize a Guid value if it can not be retrieved from inf file. This will prevent user input an illegal one.
User can adjust it via framework wizard if the random one does not requirement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1495 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/MigrationTools')
-rw-r--r-- | Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java b/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java index 97f6c8c..a7b6025 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java @@ -81,11 +81,11 @@ public class MsaWriter { } else {
msaheader.setModuleName(mi.modulename = Query("Module Name Not Found! Please Input ModuleName"));
}
- if (mi.guidvalue != null) {
- msaheader.setGuidValue(mi.guidvalue);
- } else {
- msaheader.setGuidValue(mi.guidvalue = Query("Guid Value Not Found! Please Input Guid Value"));
- }
+ if (mi.guidvalue == null) {
+ mi.guidvalue = UUID.randomUUID().toString();
+ MigrationTool.ui.println ("Guid value can not be retrieved from inf file. Generate " + mi.guidvalue + " at random!");
+ }
+ msaheader.setGuidValue(mi.guidvalue);
if (mi.moduletype != null) {
msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.getModuleType()));
/*
|