]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenCRC32SectionTask.java
Modify GenFfsTask to make it don't create ORG file.
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / GenCRC32SectionTask.java
index 52111b9c17a9ebcf7a58f9a5d852299d8eee08b2..6754beb6218ccc9d9a840fc3e9e5246475df5d17 100644 (file)
@@ -62,9 +62,9 @@ public class GenCRC32SectionTask extends Task implements EfiDefine{
         String path = project.getProperty("env.FRAMEWORK_TOOLS_PATH"); \r
         String command;\r
         if (path == null) {\r
-            command = "gencrc32section";\r
+            command = "GenCRC32Section";\r
         } else {\r
-            command = path + "/" + "gencrc32section" ;\r
+            command = path + "/" + "GenCRC32Section" ;\r
         }\r
         // \r
         // string line of input files \r
@@ -89,29 +89,25 @@ public class GenCRC32SectionTask extends Task implements EfiDefine{
             \r
             runner.setAntRun(project);\r
             runner.setCommandline(cmdline.getCommandline());\r
-            System.out.println(Commandline.toString(cmdline.getCommandline()));\r
-            \r
+            log(Commandline.toString(cmdline.getCommandline()), Project.MSG_VERBOSE);\r
+            log(" ");\r
             revl = runner.execute();\r
             if (EFI_SUCCESS == revl){\r
                 //\r
                 //  command execution success \r
                 //\r
-                System.out.println("gencrc32section succeeded!");\r
-            }\r
-            else\r
-            {\r
+                log("GenCRC32Section succeeded!", Project.MSG_VERBOSE);\r
+            } else {\r
                 // \r
                 // command execution fail\r
                 //\r
-                System.out.println("gencrc32section failed. (error=" + \r
-                    Integer.toHexString(revl) + \r
-                    ")"\r
-                    );\r
+                log("ERROR = " + Integer.toHexString(revl));\r
+// LAH Added This Line\r
+                throw new BuildException("GenCRC32Section failed!");\r
             }\r
         } catch (Exception e) {\r
             throw new BuildException(e.getMessage());\r
-        }\r
-        \r
+        }        \r
     }\r
 \r
     /**\r