]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java
Update GlobalData, SPD, SurfaceAreaQuery to using EdkException.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / fpd / FpdParserTask.java
index 99e7cca94441f66bc134e4a29ba30dc479324420..ea14ac350fdee412e4c690919d0bf44e080d285b 100644 (file)
@@ -64,18 +64,10 @@ import org.tianocore.build.toolchain.ToolChainMap;
 \r
   <p>The method parseFpdFile is also prepared for single module build. </p>\r
 \r
-  <p>The usage is (take NT32 Platform for example):</p>\r
-\r
-  <pre>\r
-  &lt;FPDParser platformName="Nt32" /&gt;\r
-  </pre>\r
-\r
   @since GenBuild 1.0\r
 **/\r
 public class FpdParserTask extends Task {\r
 \r
-    private String platformName;\r
-\r
     private File fpdFile = null;\r
 \r
     PlatformIdentification platformId;\r
@@ -123,18 +115,6 @@ public class FpdParserTask extends Task {
      Surface area is not valid.\r
     **/\r
     public void execute() throws BuildException {\r
-        //\r
-        // If fpdFile is not specified, \r
-        // then try to get FPD file by platformName\r
-        //\r
-        if ( fpdFile == null) {\r
-            if (platformName == null) {\r
-                throw new BuildException("FpdParserTask parameter error. Please specify either the platform name or FPD file!");\r
-            }\r
-            platformId = GlobalData.getPlatformByName(platformName);\r
-            fpdFile = platformId.getFpdFile();\r
-        }\r
-\r
         //\r
         // Parse FPD file\r
         //\r
@@ -178,7 +158,6 @@ public class FpdParserTask extends Task {
         //\r
         // Ant call ${PLATFORM}_build.xml\r
         //\r
-\r
         Ant ant = new Ant();\r
         ant.setProject(getProject());\r
         ant.setAntfile(platformId.getFpdFile().getParent() + File.separatorChar + platformId.getName() + "_build.xml");\r
@@ -554,10 +533,6 @@ public class FpdParserTask extends Task {
         properties.addElement(p);\r
     }\r
 \r
-    public void setPlatformName(String platformName) {\r
-        this.platformName = platformName;\r
-    }\r
-\r
     public void setFpdFile(File fpdFile) {\r
         this.fpdFile = fpdFile;\r
     }\r