\r
@return String[][] The variables defined in the config file\r
\r
- @throws EdkException\r
+ @throws GenBuildException\r
Config file's format is not valid\r
**/\r
public static synchronized String[][] parse(File configFile) throws GenBuildException {\r
// \r
int index;\r
if ((index = str.indexOf('=')) <= 0) {\r
- throw new GenBuildException("ERROR Processing file [" + configFile.getAbsolutePath() \r
+ throw new GenBuildException("ERROR Processing file [" \r
+ + configFile.getAbsolutePath() \r
+ "] (line " + lines + ").\n");\r
}\r
\r
keyList.add(str.substring(0, index).trim());\r
valueList.add(str.substring(index + 1).trim());\r
}\r
- } catch (Exception e) {\r
- throw new GenBuildException("ERROR Processing file [" + configFile.getAbsolutePath() \r
- + "] (line " + lines + ").\n" + e.getMessage());\r
+ } catch (Exception ex) {\r
+ GenBuildException e = new GenBuildException("ERROR Processing file [" \r
+ + configFile.getAbsolutePath() \r
+ + "] (line " + lines + ").\n" + ex.getMessage());\r
+ e.setStackTrace(ex.getStackTrace());\r
+ throw e;\r
}\r
\r
String[][] definitions = new String[2][keyList.size()];\r