Commit ae05fbdc authored by balaskoa's avatar balaskoa

Merge branch 'master' of github.com:eclipse/titan.EclipsePlug-ins into master

Change-Id: I69d6a1ecc89fc3e0fd62c09ededd43124acd4106
parents fd02d9f4 81ff3744
......@@ -14,6 +14,7 @@ import java.io.IOException;
import java.math.BigInteger;
import java.util.List;
import org.eclipse.titan.runtime.core.cfgparser.IOUtils;
import org.eclipse.titan.runtime.core.cfgparser.ComponentSectionHandler.Component;
import org.eclipse.titan.runtime.core.cfgparser.ExecuteSectionHandler.ExecuteItem;
import org.eclipse.titan.runtime.core.cfgparser.GroupSectionHandler.Group;
......@@ -133,19 +134,21 @@ public class ConfigData {
//Package-private
static String getConfigFileContent(File config_file) {
StringBuilder contentBuilder = new StringBuilder();
try (BufferedReader br = new BufferedReader(new FileReader(config_file)))
{
String currentLine;
while ((currentLine = br.readLine()) != null)
{
contentBuilder.append(currentLine).append("\n");
}
}
catch (IOException e)
{
e.printStackTrace();
}
return contentBuilder.toString();
BufferedReader br = null;
try {
br = new BufferedReader(new FileReader(config_file));
String currentLine;
while ((currentLine = br.readLine()) != null) {
contentBuilder.append(currentLine).append("\n");
}
} catch (IOException e) {
e.printStackTrace();
}
IOUtils.closeQuietly(br);
return contentBuilder.toString();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment