]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java
Fixed grammar in messages.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / ModuleBuildFileGenerator.java
index 49628af5d2aa092bed1b9a61f46d70b6206f9b8e..df1af186bf8960b4b4748e1d4b14c7db40d33a93 100644 (file)
@@ -54,10 +54,10 @@ public class ModuleBuildFileGenerator {
     /// The information at the header of <em>build.xml</em>.\r
     ///\r
     private String info = "DO NOT EDIT \n"\r
-                        + "File auto-generated by build utility\n"\r
+                        + "This file is auto-generated by the build utility\n"\r
                         + "\n"\r
                         + "Abstract:\n"\r
-                        + "Auto-generated ANT build file for building of EFI Modules/Platforms\n";\r
+                        + "Auto-generated ANT build file for build EFI Modules and Platforms\n";\r
 \r
     private FpdModuleIdentification fpdModuleId;\r
     \r
@@ -224,7 +224,7 @@ public class ModuleBuildFileGenerator {
             xformer.setOutputProperty(OutputKeys.INDENT, "yes");\r
             xformer.transform(source, result);\r
         } catch (Exception ex) {\r
-            throw new BuildException("Module [" + fpdModuleId.getModule().getName() + "] generating build file failed.\n" + ex.getMessage());\r
+            throw new BuildException("Generating the module [" + fpdModuleId.getModule().getName() + "] build.xml file failed!.\n" + ex.getMessage());\r
         }\r
     }\r
 \r
@@ -414,6 +414,12 @@ public class ModuleBuildFileGenerator {
 \r
         FileProcess fileProcess = new FileProcess();\r
         fileProcess.init(project, includes, document);\r
+        \r
+        //\r
+        // Initialize some properties by user\r
+        //\r
+        Element initEle = document.createElement("Build_Init");\r
+        root.appendChild(initEle);\r
 \r
         String moduleDir = project.getProperty("MODULE_DIR");\r
         //\r