summaryrefslogtreecommitdiff
path: root/Tools/Java
diff options
context:
space:
mode:
authorqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-20 03:58:23 +0000
committerqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-20 03:58:23 +0000
commit192a42b4de776da60cb65e06e74a27586a06831c (patch)
treeab2c51675b26802f69a69efdeb4a4877312f9751 /Tools/Java
parent7f62acd2fa111e082fa3c1d9a18f2fc690438566 (diff)
downloadedk2-platforms-192a42b4de776da60cb65e06e74a27586a06831c.tar.xz
Replace "system.out.print" with "EdkLog.Log".
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1802 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java')
-rw-r--r--Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java18
-rw-r--r--Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java4
2 files changed, 8 insertions, 14 deletions
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
index 0d757b923b..505cb87d29 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
@@ -214,18 +214,12 @@ public class AutoGen {
Failed to creat AutoGen.c & AutoGen.h.
**/
public void genAutogen() throws EdkException {
- try {
- //
- // If outputPath do not exist, create it.
- //
- File path = new File(outputPath);
- path.mkdirs();
- } catch (Exception e) {
- throw new AutoGenException(
- "Failed to create "
- + outputPath + " directory");
- }
-
+ //
+ // If outputPath do not exist, create it.
+ //
+ File path = new File(outputPath);
+ path.mkdirs();
+
//
// Check current is library or not, then call the corresponding
// function.
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java
index bddea90aab..e14df92fe8 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java
@@ -27,7 +27,7 @@ import org.tianocore.build.global.GlobalData;
import org.tianocore.build.global.SurfaceAreaQuery;
import org.tianocore.build.id.ModuleIdentification;
import org.tianocore.common.exception.EdkException;
-
+import org.tianocore.common.logger.EdkLog;
/**
This class This class is to reorder library instance sequence according to
library dependence.
@@ -97,7 +97,7 @@ public class AutogenLibOrder {
if (libClassDeclList != null) {
for (int j = 0; j < libClassDeclList.length; j++) {
if (this.libClassMap.containsKey(libClassDeclList[j])) {
- System.out.println(libClassDeclList[j]
+ EdkLog.log(EdkLog.EDK_ERROR,libClassDeclList[j]
+ " class is already implement by "
+ this.libClassMap.get(libClassDeclList[j]));
throw new AutoGenException("Library Class: " + libClassDeclList