]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java
first step for MsaOwner in ModuleInfo
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / ModuleReader.java
index 64958108ccaec27fc8af975075a0b63c50141312..5467b3eff464a673a96f6de79edfeb1ace087478 100644 (file)
@@ -130,7 +130,7 @@ public final class ModuleReader implements Common.ForDoAll {
     \r
     private final void preProcessModule() throws Exception {\r
        // according to .inf file, add extraordinary includes and sourcefiles\r
-        Common.dirCopy(mi.modulepath, mi.modulepath + File.separator + "temp");        // collect all Laplace.namechange to here???\r
+        Common.dirCopy(mi.modulepath, mi.temppath);    // collect all Laplace.namechange to here???\r
         \r
        if (!mi.infincludes.isEmpty()) {\r
             Iterator<String> it = mi.infincludes.iterator();\r
@@ -140,9 +140,9 @@ public final class ModuleReader implements Common.ForDoAll {
                        if (tempincludename.contains("..")) {\r
                                Matcher mtr = Common.PTNSEPARATER.matcher(tempincludename);\r
                                if (mtr.find() && !mtr.group(2).matches(".")) {\r
-                                       Common.oneLevelDirCopy(mi.modulepath.replaceAll(Common.STRSEPARATER, "$1") + File.separator + mtr.group(2), mi.modulepath + File.separator + "temp", ".h");\r
+                                       Common.oneLevelDirCopy(mi.modulepath.replaceAll(Common.STRSEPARATER, "$1") + File.separator + mtr.group(2), mi.temppath, ".h");\r
                                } else {\r
-                                       Common.oneLevelDirCopy(mi.modulepath.replaceAll(Common.STRSEPARATER, "$1"), mi.modulepath + File.separator + "temp", ".h");\r
+                                       Common.oneLevelDirCopy(mi.modulepath.replaceAll(Common.STRSEPARATER, "$1"), mi.temppath, ".h");\r
                                }\r
                        }\r
                }\r
@@ -153,17 +153,17 @@ public final class ModuleReader implements Common.ForDoAll {
             while (it.hasNext()) {\r
                tempsourcename = it.next();\r
                if (tempsourcename.contains("..")) {\r
-                       Common.ensureDir(mi.modulepath + File.separator + "temp" + File.separator + "MT_Parent_Sources");\r
+                       Common.ensureDir(mi.temppath + File.separator + "MT_Parent_Sources");\r
                                Matcher mtr = Common.PTNSEPARATER.matcher(tempsourcename);\r
                                if (mtr.find()) {\r
-                                       Common.fileCopy(mi.modulepath.replaceAll(Common.STRSEPARATER, "$1") + File.separator + mtr.group(2), mi.modulepath + File.separator + "temp" + File.separator + "MT_Parent_Sources" + File.separator + mtr.group(2));\r
+                                       Common.fileCopy(mi.modulepath.replaceAll(Common.STRSEPARATER, "$1") + File.separator + mtr.group(2), mi.temppath + File.separator + "MT_Parent_Sources" + File.separator + mtr.group(2));\r
                                }\r
                }\r
             }\r
        }\r
 \r
         //CommentOutNonLocalHFile();\r
-        Common.toDoAll(mi.modulepath + File.separator + "temp", this, Common.FILE);\r
+        Common.toDoAll(mi.temppath, this, Common.FILE);\r
         \r
         parsePreProcessedSourceCode();\r
 \r
@@ -203,7 +203,7 @@ public final class ModuleReader implements Common.ForDoAll {
         while (ii.hasNext()) {\r
             StringBuffer wholefile = new StringBuffer();\r
             ifile = ii.next();\r
-            rd = new BufferedReader(new FileReader(mi.modulepath + File.separator + "temp" + File.separator + ifile));\r
+            rd = new BufferedReader(new FileReader(mi.temppath + File.separator + ifile));\r
             while ((line = rd.readLine()) != null) {\r
                 wholefile.append(line + '\n');\r
             }\r
@@ -298,7 +298,7 @@ public final class ModuleReader implements Common.ForDoAll {
 \r
     //-----------------------------------ForDoAll-----------------------------------//\r
     public void run(String filepath) throws Exception {\r
-       String name = mi.modulepath + File.separator + "temp" + File.separator + filepath.replace(mi.modulepath + File.separator + "temp" + File.separator, "");\r
+       String name = mi.temppath + File.separator + filepath.replace(mi.temppath + File.separator, "");\r
        commentlaplace.transform(name, name);\r
     }\r
 \r