Package scripts

Source Code of scripts.FindbugsParserThread

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

}
TOP

Related Classes of scripts.FindbugsParserThread

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.