import java.util.Locale;
import java.util.Locale.Category;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
import net.jaekl.cfb.CfbBundle;
import net.jaekl.cfb.util.Command;
import net.jaekl.qd.xml.XmlParseException;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
public class Analyzer {
MessageMap m_msgMap;
m_msgMap = msgMap;
}
- public Analysis analyze(PrintWriter pw, File workDir, File fbp, String buildNumber) throws IOException, XmlParseException, SAXException
+ public Analysis analyze(PrintWriter pw, File workDir, File fbp, String projName, String buildNumber)
+ throws IOException, XmlParseException, SAXException
{
- Analysis result = new Analysis(buildNumber);
+ Analysis result = new Analysis(projName, buildNumber);
File fbOutput = outputWorkFile(workDir, fbp);
pw.println(cmdLine);
pw.flush();
Command.Result fbResult = new Command().exec(cmdLine);
+ pw.println("==> " + fbResult.getRetCode());
+ pw.flush();
if (0 != fbResult.getRetCode()) {
// Our attempt to execute FindBugs failed.
// Report the error and return null.
result.setEnd(new Date());
result.parse(new InputSource(fbOutput.getAbsolutePath()));
- result.dump(pw);
+ // result.dump(pw);
return result;
}