X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FJava%2FSource%2FCheckTools%2Fsrc%2Forg%2Ftianocore%2FCheckTools%2FToolChecks.java;h=5dbd5c54df0e6268c26a2a88759d1b00a8a53cd4;hb=dbfb39ef04e9db825a0325bc022ce963eb2a2e01;hp=0c0c936595edd05172d4ee9364aedc4292844a1e;hpb=ddfdc8e69df8065dd0c6ff9e29b9c2f0e4b0656d;p=mirror_edk2.git diff --git a/Tools/Java/Source/CheckTools/src/org/tianocore/CheckTools/ToolChecks.java b/Tools/Java/Source/CheckTools/src/org/tianocore/CheckTools/ToolChecks.java index 0c0c936595..5dbd5c54df 100644 --- a/Tools/Java/Source/CheckTools/src/org/tianocore/CheckTools/ToolChecks.java +++ b/Tools/Java/Source/CheckTools/src/org/tianocore/CheckTools/ToolChecks.java @@ -86,6 +86,16 @@ 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."); + } + } else { + System.out.println(""); + System.out.println(" Tool Configuration File: " + toolConfFile + " is valid!"); } return returnCode; @@ -121,10 +131,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 { @@ -141,7 +150,7 @@ public class ToolChecks { } } catch (IOException e) { System.out.println(" [" + testFile + "] " + e); - System.exit(1); + System.exit(FAIL); } if (errLog.size() > 0) for (int i = 0; i < goodLog.size(); i++) {