for (int i = 0; i < runsElementResult.getLength(); i++)
{
Element currentRunsElement = (Element)runsElementResult.item(i);
RunConfiguration runConfiguration = new RunConfiguration();
runConfigurationList.add(runConfiguration);
int runNumber = ((Double)runNumberXpathExpression.evaluate(currentRunsElement, XPathConstants.NUMBER)).intValue();
logger.info(String.format(" (%d) RUN -- run number: %d", i, runNumber));
NodeList fileElementNodeList = (NodeList)runFileXpathExpression.evaluate(currentRunsElement, XPathConstants.NODESET);
for (int j=0; j < fileElementNodeList.getLength(); j++)
{
Element fileElement = (Element)fileElementNodeList.item(j);
String filename = fileNameExpression.evaluate(fileElement);
File file = new File(filename);
//logger.info(String.format(" - %s", filename));
runConfiguration.addFile(file);
}
}
logger.info("=== RUNS end ===");
return runConfigurationList;