Package scripts

Source Code of scripts.CoberturaParserThread

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();
    }
  }

}
TOP

Related Classes of scripts.CoberturaParserThread

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.