summaryrefslogtreecommitdiff
path: root/Tools/Source/MigrationTools
diff options
context:
space:
mode:
authoralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-24 01:00:09 +0000
committeralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-24 01:00:09 +0000
commita55ae0f203c27da7db3c23585a7724e3b2986b74 (patch)
tree63dd1053dcdfdefacae6f7ee767c1c289d7a4995 /Tools/Source/MigrationTools
parentc1dbe93d277808fc07b759342d598b48b2989a68 (diff)
downloadedk2-a55ae0f203c27da7db3c23585a7724e3b2986b74.zip
edk2-a55ae0f203c27da7db3c23585a7724e3b2986b74.tar.gz
edk2-a55ae0f203c27da7db3c23585a7724e3b2986b74.tar.bz2
little modify
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1373 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/MigrationTools')
-rw-r--r--Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java2
-rw-r--r--Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java6
-rw-r--r--Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java3
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 fdc6aca..958e6bd 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 d55cf6e..cf1cabe 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 7d4c13b..7d9859c 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()) {