summaryrefslogtreecommitdiff
path: root/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 01:25:02 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 01:25:02 +0000
commite3cc406130b14c020c75e3a169f94ba001bf2128 (patch)
tree15899a8d83949e171fcc362255c53fcee59aae12 /Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
parent822d4f3a53a69dcbc1c9eaaf318a0d69d9b8de0e (diff)
downloadedk2-platforms-e3cc406130b14c020c75e3a169f94ba001bf2128.tar.xz
- Fixed EDKT240. Now the Blank.pad file for alignment purpose will no longer be needed.
- Fixed EDKT366. For NT32, using "build run" to launch the NT32 emulator. The run.cmd is still be generated in the ${TARGET_DIR} git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2305 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java')
-rw-r--r--Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
index c110f3bc50..9d53a21999 100644
--- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
+++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
@@ -25,6 +25,7 @@ import org.apache.tools.ant.BuildException;
**/
public class SectFile implements Section {
private String fileName = ""; /// section file name
+ private int alignment = 0;
/**
Get method of ANT task/datatype for "FileName" attribute
@@ -44,6 +45,18 @@ public class SectFile implements Section {
this.fileName = fileName;
}
+ public int getAlignment() {
+ return alignment;
+ }
+
+ public void setAlignment(int alignment) {
+ if (alignment > 7) {
+ this.alignment = 7;
+ } else {
+ this.alignment = alignment;
+ }
+ }
+
public SectFile (){
}