]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
- Fixed EDKT240. Now the Blank.pad file for alignment purpose will no longer be needed.
[mirror_edk2.git] / Tools / Java / Source / FrameworkTasks / org / tianocore / framework / tasks / SectFile.java
index c110f3bc50b27f8e6cfd34bca66a7ee654daf8ab..9d53a21999a8065e0907aff2a9b40d9f948f7343 100644 (file)
@@ -25,6 +25,7 @@ import org.apache.tools.ant.BuildException;
  **/\r
 public class SectFile implements Section {\r
     private String fileName = ""; /// section file name\r
  **/\r
 public class SectFile implements Section {\r
     private String fileName = ""; /// section file name\r
+    private int alignment = 0;\r
 \r
     /**\r
      Get method of ANT task/datatype for "FileName" attribute\r
 \r
     /**\r
      Get method of ANT task/datatype for "FileName" attribute\r
@@ -44,6 +45,18 @@ public class SectFile implements Section {
         this.fileName = fileName;   \r
     }\r
 \r
         this.fileName = fileName;   \r
     }\r
 \r
+    public int getAlignment() {\r
+        return alignment;\r
+    }\r
+\r
+    public void setAlignment(int alignment) {\r
+        if (alignment > 7) {\r
+            this.alignment = 7;\r
+        } else {\r
+            this.alignment = alignment;\r
+        }\r
+    }\r
+\r
     public SectFile (){\r
     }\r
 \r
     public SectFile (){\r
     }\r
 \r