diff options
author | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-04 06:38:16 +0000 |
---|---|---|
committer | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-04 06:38:16 +0000 |
commit | 1e8e8a82ddbc10ad79097ef393866d188f968ee1 (patch) | |
tree | 838a7729550dc606f18f9f0862ecaddf3f65d213 | |
parent | 2934f5b0674d3094b329d9347f9d343ec3395bb3 (diff) | |
download | edk2-platforms-1e8e8a82ddbc10ad79097ef393866d188f968ee1.tar.xz |
modify moduleinfo
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1437 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java index 428f82b659..8d384aa344 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java @@ -51,10 +51,10 @@ public final class ModuleInfo { String temp = null;
if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") ||
filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni")) {
- localmodulesources.add(filepath.replace(modulepath + "\\", ""));
+ localmodulesources.add(filepath.replace(modulepath + File.separator, ""));
} else if (filepath.contains(".inf") || filepath.contains(".msa")) {
- temp = filepath.replace(modulepath + "\\", "");
- if (!temp.contains(File.separator)) { // .inf in subdirectory is not regarded
+ temp = filepath.replace(modulepath + File.separator, "");
+ if (!temp.contains(File.separator)) { // .inf in subdirectory is not regarded
msaorinf.add(temp);
}
}
|