package scripts;
import javax.xml.parsers.ParserConfigurationException;
import parsers.CoberturaParser;
/**
*
* The thread which handles the Cobertura parser
*
*/
public class CoberturaParserThread extends Thread {
private String coberturaPath;
private int idVersion;
public CoberturaParserThread(String coberturaPath, int idVersion) {
this.coberturaPath = coberturaPath;
this.idVersion = idVersion;
}
public void run() {
CoberturaParser coberturaParser = new CoberturaParser();
try {
coberturaParser.readResults(coberturaPath);
coberturaParser.saveResults(idVersion);
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}
}