]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/CheckTools/src/org/tianocore/CheckTools/ToolChecks.java
Added instruction on how to remove WARNINGS with -v flag set
[mirror_edk2.git] / Tools / Java / Source / CheckTools / src / org / tianocore / CheckTools / ToolChecks.java
index 0c0c936595edd05172d4ee9364aedc4292844a1e..ad4c544ff8bcefc89cedf776d62e817bdcefa08c 100644 (file)
@@ -86,6 +86,13 @@ public class ToolChecks {
                 System.out.println("Tool Chain Tag Name: " + goodLog.get(i) + " is valid!");
             for (int i = 0; i < errLog.size(); i++)
                 System.out.println(errLog.get(i));
+            if (VERBOSE > 0) {
+                System.out.println();
+                System.out.println("You can remove these WARNING messages by editing the file:");
+                System.out.println("  " + toolConfFile);
+                System.out.println("and commenting out out or deleting the entries for the tool");
+                System.out.println("chain tag names that do not apply to your system.");
+            }
         }
 
         return returnCode;
@@ -121,10 +128,9 @@ public class ToolChecks {
                     File testPath = new File(path);
                     if (!testPath.exists()) {
                         if (!props[1].trim().contentEquals(lastErrTag))
-                            errLog.add("  -- ERROR: Tool Chain Tag Name: " + props[1].trim() + " is invalid!");
-                            // System.out.println("      +++++ ERROR: Tool Chain: " + props[1].trim() + " is invalid!");
-                        errLog.add("    Tool Code: [" + props[3].trim() + "] Path: " + path + " does not exist!");
-                        // System.out.println(" Tool: " + props[3].trim() + " Path: " + path + " does not exist!");
+                            errLog.add("  -- WARNING: Tool Chain Tag Name: " + props[1].trim() + " is NOT valid!");
+                        if (VERBOSE > 1)
+                            errLog.add("    Tool Code: [" + props[3].trim() + "] Path: " + path + " does not exist!");
                         retCode = 1;
                         lastErrTag = props[1].trim();
                     } else {