diff options
Diffstat (limited to 'Tools/Java')
-rw-r--r-- | Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java | 18 | ||||
-rw-r--r-- | Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java | 4 |
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
|