little modify

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1373 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
alfred 2006-08-24 01:00:09 +00:00
parent c1dbe93d27
commit a55ae0f203
3 changed files with 9 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public final class ModuleInfo {
}
}
public String modulepath = null;
public final String modulepath;
public String outputpath = null;

View File

@ -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);

View File

@ -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()) {