]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/PcdTools/org/tianocore/pcd/action/BuildAction.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Source / PcdTools / org / tianocore / pcd / action / BuildAction.java
diff --git a/Tools/Source/PcdTools/org/tianocore/pcd/action/BuildAction.java b/Tools/Source/PcdTools/org/tianocore/pcd/action/BuildAction.java
deleted file mode 100644 (file)
index 9d30a76..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/** @file\r
-  BuildAction class.\r
-\r
-  BuildAction is the parent class for all action related to ant Task. This class will\r
-  define some common utility functionality, such as logMsg, warningMsg..etc.\r
\r
-Copyright (c) 2006, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-package org.tianocore.pcd.action;\r
-\r
-import org.apache.tools.ant.Task;\r
-import org.apache.tools.ant.Project;\r
-import org.tianocore.pcd.exception.BuildActionException;\r
-\r
-/** BuildAction is the parent class for all action related to ant Task. This class will\r
-    define some common utility functionality, such as logMsg, warningMsg..etc.\r
-**/\r
-public abstract class BuildAction extends Task {\r
-    ///\r
-    /// Original message level before this action. This value will \r
-    /// be restored when quit this action.\r
-    ///\r
-    private int originalMessageLevel;\r
-\r
-    /**\r
-      checkParameter function check all parameter valid.\r
-\r
-      This function will be overrided by child class.\r
-    **/\r
-    public abstract void checkParameter() throws BuildActionException;\r
-\r
-    /**\r
-     performAction is to execute the detail action.\r
-      \r
-     This function will be overrided by child class.\r
-    **/\r
-    public abstract void performAction() throws BuildActionException;\r
-\r
-    /**\r
-      execute function is the main flow for all build action class.\r
-\r
-      This workflow will be:\r
-      1) Check paramet of this action.\r
-      2) Perform the child class action function.\r
-      3) Restore the message level.\r
-     \r
-      @throws BuildActionException\r
-    **/  \r
-    public void execute() throws BuildActionException {\r
-        checkParameter();\r
-        performAction();\r
-    }\r
-}\r