diff options
author | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-23 10:14:46 +0000 |
---|---|---|
committer | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-23 10:14:46 +0000 |
commit | cfdfbaca559ef990c82985760f33a7139e76ac3a (patch) | |
tree | 97e2d43c334e9a31e25d9ff462f443d48acdb59a | |
parent | 1eac75f911034feed279a69fbe6b84853682dca3 (diff) | |
download | edk2-cfdfbaca559ef990c82985760f33a7139e76ac3a.zip edk2-cfdfbaca559ef990c82985760f33a7139e76ac3a.tar.gz edk2-cfdfbaca559ef990c82985760f33a7139e76ac3a.tar.bz2 |
debug pei
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1363 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java | 7 | ||||
-rw-r--r-- | Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java | 6 |
2 files changed, 5 insertions, 8 deletions
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java index 49dde8b..fdc6aca 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java @@ -60,14 +60,11 @@ public final class ModuleInfo { public final Set<String> ppi = new HashSet<String>();
public final void enroll(String filepath) throws Exception {
- String[] temp;
if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") ||
filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni")) {
- temp = filepath.split("\\\\");
- localmodulesources.add(temp[temp.length - 1]);
+ localmodulesources.add(filepath.replace(modulepath + "\\", ""));
} else if (filepath.contains(".inf") || filepath.contains(".msa")) {
- temp = filepath.split("\\\\");
- msaorinf.add(temp[temp.length - 1]);
+ msaorinf.add(filepath.replace(modulepath + "\\", ""));
}
}
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java index 2dcd6d2..d55cf6e 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java @@ -27,9 +27,9 @@ public final class ModuleReader { public static final void ModuleScan(ModuleInfo m) throws Exception {
mi = m;
-
+
Common.toDoAll(mi.modulepath, ModuleInfo.class.getMethod("enroll", String.class), mi, null, Common.FILE);
-
+
String filename = null;
if (mi.msaorinf.isEmpty()) {
ModuleInfo.ui.println("No INF nor MSA file found!");
@@ -42,7 +42,7 @@ public final class ModuleReader { } else if (filename.contains(".msa")) {
readMsa(filename);
}
-
+
CommentOutNonLocalHFile();
parsePreProcessedSourceCode();
|