Replace "system.out.print" with "EdkLog.Log".
authorqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 20 Oct 2006 03:58:23 +0000 (03:58 +0000)
committerqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 20 Oct 2006 03:58:23 +0000 (03:58 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1802 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java

index 0d757b923b1c4b769096326b074db54482fdbf83..505cb87d294ab784d03907898b01f307f531d570 100644 (file)
@@ -214,18 +214,12 @@ public class AutoGen {
                   Failed to creat AutoGen.c & AutoGen.h.\r
     **/\r
     public void genAutogen() throws EdkException {\r
-        try {\r
-            //\r
-            // If outputPath do not exist, create it.\r
-            //\r
-            File path = new File(outputPath);\r
-            path.mkdirs();\r
-               } catch (Exception e) {\r
-            throw new AutoGenException(\r
-                                    "Failed to create "\r
-                                    + outputPath + " directory");\r
-        }\r
-            \r
+        //\r
+        // If outputPath do not exist, create it.\r
+        //\r
+        File path = new File(outputPath);\r
+        path.mkdirs();\r
+        \r
                //\r
                // Check current is library or not, then call the corresponding\r
                // function.\r
index bddea90aab2dee3f612bb7a7d91e3660415a46f4..e14df92fe8fca69ea3118ab20cc45756ba3b4ffd 100644 (file)
@@ -27,7 +27,7 @@ import org.tianocore.build.global.GlobalData;
 import org.tianocore.build.global.SurfaceAreaQuery;\r
 import org.tianocore.build.id.ModuleIdentification;\r
 import org.tianocore.common.exception.EdkException;\r
-\r
+import org.tianocore.common.logger.EdkLog;\r
 /**\r
   This class This class is to reorder library instance sequence according to\r
   library dependence.\r
@@ -97,7 +97,7 @@ public class AutogenLibOrder {
             if (libClassDeclList != null) {\r
                 for (int j = 0; j < libClassDeclList.length; j++) {\r
                     if (this.libClassMap.containsKey(libClassDeclList[j])) {\r
-                        System.out.println(libClassDeclList[j]\r
+                        EdkLog.log(EdkLog.EDK_ERROR,libClassDeclList[j]\r
                                 + " class is already implement by "\r
                                 + this.libClassMap.get(libClassDeclList[j]));\r
                         throw new AutoGenException("Library Class: " + libClassDeclList\r