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 0d757b9..505cb87 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 bddea90..e14df92 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