From 23583a8891e878633a430212502dfa97fd143573 Mon Sep 17 00:00:00 2001 From: jwang36 Date: Mon, 10 Jul 2006 10:51:01 +0000 Subject: [PATCH] Removed the printStackTrace() which is used only for debug purpose. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@864 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java | 1 - Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java | 1 - .../GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java | 1 - .../Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java | 2 -- .../org/tianocore/build/fpd/PlatformBuildFileGenerator.java | 1 - .../Source/GenBuild/org/tianocore/build/global/GlobalData.java | 1 - 6 files changed, 7 deletions(-) diff --git a/Tools/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java b/Tools/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java index 624b07d046..f09becbad0 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java @@ -80,7 +80,6 @@ public class FrameworkBuildTask extends Task{ } } } catch (Exception e) { - e.printStackTrace(); throw new BuildException(e.getMessage()); } diff --git a/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java b/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java index bc484a29e4..c01ca93985 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java @@ -291,7 +291,6 @@ public class GenBuildTask extends Ant { } popProperties(); }catch (Exception e){ - e.printStackTrace(); throw new BuildException(e.getMessage()); } } diff --git a/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java b/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java index 7d8bf8b59e..0680146cec 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java +++ b/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java @@ -221,7 +221,6 @@ public class ModuleBuildFileGenerator { xformer.setOutputProperty(OutputKeys.INDENT, "yes"); xformer.transform(source, result); } catch (Exception ex) { - ex.printStackTrace(); throw new BuildException("Module [" + fpdModuleId.getModule().getName() + "] generating build file failed.\n" + ex.getMessage()); } } diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java index b102ecfee1..2b0fb2346b 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java @@ -311,7 +311,6 @@ public class FpdParserTask extends Task { bw.close(); fw.close(); } catch (Exception e) { - e.printStackTrace(); throw new BuildException("Generate FV file [" + fvFile.getPath() + "] failed. \n" + e.getMessage()); } } @@ -394,7 +393,6 @@ public class FpdParserTask extends Task { throw new BuildException(e.getMessage()); } } catch (Exception e) { - e.printStackTrace(); throw new BuildException("Load FPD file [" + fpdFile.getPath() + "] error. \n" + e.getMessage()); } } diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java index 929ddeaadc..a7566f449e 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java @@ -190,7 +190,6 @@ public class PlatformBuildFileGenerator { xformer.setOutputProperty(OutputKeys.INDENT, "yes"); xformer.transform(source, result); } catch (Exception ex) { - ex.printStackTrace(); throw new BuildException("Generate " + platformName + "_build.xml failed. \n" + ex.getMessage()); } } diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java index bfeea8ae16..51f198571a 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java +++ b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java @@ -230,7 +230,6 @@ public class GlobalData { } } } catch (Exception e) { - e.printStackTrace(); throw new BuildException("Parse workspace Database [" + dbFile.getPath() + "] Error.\n" + e.getMessage()); } }