X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2FCFB.java;h=d587c1878e882b0a0dfab3152669240149da5dd1;hp=7dca443fa6b62aa65428b997bb9f4ad4b65a0871;hb=5bc9bbe3fd54b9fc7aa3b92d2d37e95c41b9645a;hpb=a938b67bf3d3bd86f8dd7b1f958e81007bf6f2fe diff --git a/prod/net/jaekl/cfb/CFB.java b/prod/net/jaekl/cfb/CFB.java index 7dca443..d587c18 100644 --- a/prod/net/jaekl/cfb/CFB.java +++ b/prod/net/jaekl/cfb/CFB.java @@ -1,5 +1,12 @@ package net.jaekl.cfb; +// Comparative FindBugs +// +// Tool to compare successive runs of FindBugs, +// flagging the change from one run to the next. +// +// Copyright (C) 2015 Christian Jaekl + import java.io.File; import java.io.IOException; import java.io.PrintWriter; @@ -13,6 +20,7 @@ import net.jaekl.cfb.analyze.Analyzer; import net.jaekl.cfb.db.CfbSchema; import net.jaekl.cfb.db.driver.DbDriver; import net.jaekl.cfb.db.driver.PostgresqlDriver; +import net.jaekl.qd.xml.XmlParseException; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.GnuParser; @@ -123,9 +131,9 @@ public class CFB { if (null != findBugsDir) { m_fbDir = new File(findBugsDir); } - } + } - void doMain(PrintWriter pw, String[] args) throws SQLException, IOException { + void doMain(PrintWriter pw, String[] args) throws SQLException, IOException, XmlParseException { initArgs(); // read environment and system properties if ( ! parseArgs(pw, args) ) { return; @@ -157,7 +165,7 @@ public class CFB { try (PrintWriter pw = new PrintWriter(System.out)){ cfb.doMain(pw, args); pw.flush(); - } catch (SQLException | IOException exc) { + } catch (SQLException | IOException | XmlParseException exc) { exc.printStackTrace(); } }