modify moduleinfo
authoralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 4 Sep 2006 06:38:16 +0000 (06:38 +0000)
committeralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 4 Sep 2006 06:38:16 +0000 (06:38 +0000)
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

index 428f82b..8d384aa 100644 (file)
@@ -51,10 +51,10 @@ public final class ModuleInfo {
                String temp = null;\r
                if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") || \r
                                filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni")) {\r
-                       localmodulesources.add(filepath.replace(modulepath + "\\", ""));\r
+                       localmodulesources.add(filepath.replace(modulepath + File.separator, ""));\r
                } else if (filepath.contains(".inf") || filepath.contains(".msa")) {\r
-                       temp = filepath.replace(modulepath + "\\", "");\r
-                       if (!temp.contains(File.separator)) {                                                           // .inf in subdirectory is not regarded\r
+                       temp = filepath.replace(modulepath + File.separator, "");\r
+                       if (!temp.contains(File.separator)) {                                                   // .inf in subdirectory is not regarded\r
                                msaorinf.add(temp);\r
                        }\r
                }\r