diff options
author | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-24 01:00:09 +0000 |
---|---|---|
committer | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-24 01:00:09 +0000 |
commit | a55ae0f203c27da7db3c23585a7724e3b2986b74 (patch) | |
tree | 63dd1053dcdfdefacae6f7ee767c1c289d7a4995 /Tools | |
parent | c1dbe93d277808fc07b759342d598b48b2989a68 (diff) | |
download | edk2-platforms-a55ae0f203c27da7db3c23585a7724e3b2986b74.tar.xz |
little modify
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1373 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
3 files changed, 9 insertions, 2 deletions
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java index fdc6aca781..958e6bda4c 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java @@ -34,7 +34,7 @@ public final class ModuleInfo { }
}
- public String modulepath = null;
+ public final String modulepath;
public String outputpath = null;
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java index d55cf6e893..cf1cabe22a 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java @@ -35,7 +35,11 @@ public final class ModuleReader { ModuleInfo.ui.println("No INF nor MSA file found!");
System.exit(0);
} else {
- filename = ModuleInfo.ui.choose("Found .inf or .msa file for module\n" + mi.modulepath + "\nChoose one Please", mi.msaorinf.toArray());
+ if (mi.msaorinf.size() == 1) {
+ filename = (String)mi.msaorinf.toArray()[0];
+ } else {
+ filename = ModuleInfo.ui.choose("Found .inf or .msa file for module\n" + mi.modulepath + "\nChoose one Please", mi.msaorinf.toArray());
+ }
}
if (filename.contains(".inf")) {
readInf(filename);
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java b/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java index 7d4c13ba96..7d9859c815 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java @@ -44,9 +44,12 @@ public final class SourceFileReplacer { String outname = null;
String inname = null;
+ /*
if (ModuleInfo.ui.yesOrNo("Changes will be made to the Source Code. View details?")) {
showdetails = true;
}
+ */
+ showdetails = true; // set this as default now, may be changed in the future
Iterator<String> di = mi.localmodulesources.iterator();
while (di.hasNext()) {
|