package org.tianocore.build.pcd.action;\r
\r
import org.apache.tools.ant.Task;\r
+import org.apache.tools.ant.Project;\r
import org.tianocore.build.pcd.exception.BuildActionException;\r
\r
/** BuildAction is the parent class for all action related to ant Task. This class will\r
//\r
// Comment following code because in console debug environment, we can't \r
// get Project instance.\r
- //((Task) action).log(errorText, Project.MSG_INFO);\r
- //\r
- System.out.println(logStr);\r
+ ((Task) action).log(logStr, Project.MSG_INFO);\r
}\r
\r
/**\r
//\r
// Comment following code because in console debug environment, we can't \r
// get Project instance.\r
- //((Task) action).log(warningText, Project.MSG_WARN);\r
- //\r
- System.out.println(warningStr);\r
+ ((Task) action).log(warningStr, Project.MSG_WARN);\r
}\r
\r
/**\r