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