From 1e8e8a82ddbc10ad79097ef393866d188f968ee1 Mon Sep 17 00:00:00 2001 From: alfred Date: Mon, 4 Sep 2006 06:38:16 +0000 Subject: modify moduleinfo git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1437 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Tools/Source/MigrationTools') diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java index 428f82b..8d384aa 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); } } -- cgit v1.1