From e3cc406130b14c020c75e3a169f94ba001bf2128 Mon Sep 17 00:00:00 2001 From: jwang36 Date: Thu, 25 Jan 2007 01:25:02 +0000 Subject: - 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 --- .../org/tianocore/framework/tasks/SectFile.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java') 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 (){ } -- cgit v1.2.3