X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FFrameworkTasks%2Forg%2Ftianocore%2Fframework%2Ftasks%2FGenFfsFileTask.java;h=1500fdff6657ee0783f30f2af55683ac3699e797;hp=ceff3205fe8147be0a392989571698cb4d11fcf0;hb=8cf7c268db06dbed2ab76511dbb51b8f498fcf0a;hpb=275d78c5f63f37c892649c453cfc6ba00f454c78 diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java index ceff3205fe..1500fdff66 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java @@ -169,17 +169,16 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes { } - ffsFile = new File (outputPath + this.ffsFileGuid + '-' + this.baseName + ffsSuffix); - System.out.print("General Ffs file: file name is:\n"); - System.out.print(outputPath + this.ffsFileGuid + '-' + this.baseName + ffsSuffix); - System.out.print("\n"); - + String ffsFilePath = outputPath + this.ffsFileGuid + '-' + this.baseName + ffsSuffix; + ffsFile = new File (ffsFilePath); // // Create ffs ORG file. fileName = FfsFileGuid + BaseName + ffsSuffix + // ".org". // - ffsOrgFile = new File(outputPath + this.ffsFileGuid + '-' + this.baseName + ffsSuffix + ".org"); + ffsOrgFile = new File(ffsFilePath + ".org"); + log(ffsFile.getName()); + log(ffsOrgFile.getName()); try { // // Create file output stream -- dataBuffer. @@ -428,8 +427,8 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes { // ffsBuffer.close(); orgFfsBuffer.close(); - System.out.print ("Successful create ffs file!\n"); } catch (Exception e) { + log("genffsfile failed!"); throw new BuildException (e.getMessage()); } } @@ -491,7 +490,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes { This function is to get the ffsAligment @return The value of ffsAligment. **/ - public int getFfsAligment() { + public int getFfsAlignment() { return this.ffsAlignment; } @@ -501,7 +500,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes { This function is to set ffsAligment @param ffsAligment The value of ffsAligment. **/ - public void setFfsAligment(int ffsAligment) { + public void setFfsAlignment(int ffsAligment) { this.ffsAlignment = ffsAligment; if (this.ffsAlignment > 7) { throw new BuildException ("FFS_ALIGMENT Scope is 0-7");