X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FGenBuild%2Forg%2Ftianocore%2Fbuild%2Ftoolchain%2FConfigReader.java;h=6ad4d44388aa14b6ca0419e2d1de4de3c8e847f0;hp=b6f58ce5f2575421d141bbdee703876a905b92cc;hb=2279b26c4de1e947c038ffa47e3d77a241f09d89;hpb=91f7d582299ddc08babbff1624df3fd136a37ee9 diff --git a/Tools/Source/GenBuild/org/tianocore/build/toolchain/ConfigReader.java b/Tools/Source/GenBuild/org/tianocore/build/toolchain/ConfigReader.java index b6f58ce5f2..6ad4d44388 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/toolchain/ConfigReader.java +++ b/Tools/Source/GenBuild/org/tianocore/build/toolchain/ConfigReader.java @@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ package org.tianocore.build.toolchain; -import org.tianocore.common.exception.EdkException; +import org.tianocore.build.exception.GenBuildException; import java.io.BufferedReader; import java.io.File; @@ -38,7 +38,7 @@ public class ConfigReader { @return String[][] The definition array **/ - public static synchronized String[][] parse(String filename) throws EdkException { + public static synchronized String[][] parse(String filename) throws GenBuildException { return parse(new File(filename)); } @@ -53,7 +53,7 @@ public class ConfigReader { @throws EdkException Config file's format is not valid **/ - public static synchronized String[][] parse(File configFile) throws EdkException { + public static synchronized String[][] parse(File configFile) throws GenBuildException { List keyList = new ArrayList(256); List valueList = new ArrayList(256); int lines = 0; @@ -78,7 +78,7 @@ public class ConfigReader { // int index; if ((index = str.indexOf('=')) <= 0) { - throw new EdkException("ERROR Processing file [" + configFile.getAbsolutePath() + throw new GenBuildException("ERROR Processing file [" + configFile.getAbsolutePath() + "] (line " + lines + ").\n"); } @@ -89,7 +89,7 @@ public class ConfigReader { valueList.add(str.substring(index + 1).trim()); } } catch (Exception e) { - throw new EdkException("ERROR Processing file [" + configFile.getAbsolutePath() + throw new GenBuildException("ERROR Processing file [" + configFile.getAbsolutePath() + "] (line " + lines + ").\n" + e.getMessage()); }