]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GuidChkTask.java
Polished the build tools' screen output to be in a more coherent form
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / GuidChkTask.java
index ebccca46732fd4db92e55ecd8bed89c260f3f8a1..8b6943229fd1f9ce89c923e8ef1c3175dc8f310e 100644 (file)
@@ -113,7 +113,7 @@ public class GuidChkTask extends Task implements EfiDefine{
                           printGuiDef + \r
                           printAllGuid;     \r
         try {\r
-            System.out.println(command + " " + argument);\r
+            log(command + " " + argument, Project.MSG_VERBOSE);\r
             //\r
             // execute command line \r
             //\r
@@ -134,17 +134,13 @@ public class GuidChkTask extends Task implements EfiDefine{
             else {\r
                 BufferedReader bin = new BufferedReader(new InputStreamReader(proc.getInputStream()));\r
                 String line = bin.readLine();\r
-                System.out.println(line);\r
                 while (line != null ){\r
-                    System.out.print(line);\r
                     line = bin.readLine();\r
                 }               \r
             }                      \r
-            System.out.println("GuidChkTask Success!");\r
+            log("GuidChkTask Succeeded!", Project.MSG_VERBOSE);\r
         } catch (Exception e) {\r
-            System.out.println("GuidChkTask failed!");\r
-            System.out.println(e.getMessage());\r
-            \r
+            throw new BuildException("GuidChkTask failed!");\r
         }\r
     }\r
     /**\r