]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/ContextTool/org/tianocore/context/TargetFile.java
Fix the EDKT414, the old value should be replaced with new value.
[mirror_edk2.git] / Tools / Java / Source / ContextTool / org / tianocore / context / TargetFile.java
index 76c4b183d6174215c76aeba41a41ef60f6a1a975..06a031c8bb736fd01a8c831a68d9b30ba15aee61 100644 (file)
@@ -152,7 +152,7 @@ public class TargetFile {
                     bw.newLine();\r
                 } else {\r
                     //\r
-                    //modify at the first time, and there should be *ACTIVE_PLATFORM*=* in the line\r
+                    //modify at the first time, and there should be "*ACTIVE_PLATFORM*=*" in the line\r
                     //\r
                     if (textLine.indexOf("ACTIVE_PLATFORM") != -1) {\r
                         if(pflag == true){\r
@@ -418,26 +418,6 @@ public class TargetFile {
         return true;\r
     }\r
     \r
-    private static String convertStr(String str){\r
-        String convertStr = null;\r
-        \r
-        if( str.compareTo("-p") == 0 ){\r
-            convertStr =  "ACTIVE_PLATFORM";\r
-        }else if( str.compareTo("-a") == 0){\r
-            convertStr =  "TARGET_ARCH";\r
-        }else if( str.compareTo("-t") == 0){\r
-            convertStr =  "TARGET";\r
-        }else if( str.compareTo("-c") == 0){\r
-            convertStr =  "TOOL_CHAIN_CONF";\r
-        }else if( str.compareTo("-n") == 0){\r
-            convertStr =  "TOOL_CHAIN_TAG";\r
-        }else if( str.compareTo("-m") == 0){\r
-            convertStr =  "MAX_CONCURRENT_THREAD_NUMBER";\r
-        }\r
-        \r
-        return convertStr;\r
-    }\r
-    \r
 \r
     /**\r
      * according to user's input args, write the file directly\r