projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve XML parsing to handle attributes as well.
[cfb.git]
/
prod
/
net
/
jaekl
/
cfb
/
CFB.java
diff --git
a/prod/net/jaekl/cfb/CFB.java
b/prod/net/jaekl/cfb/CFB.java
index 7dca443fa6b62aa65428b997bb9f4ad4b65a0871..d587c1878e882b0a0dfab3152669240149da5dd1 100644
(file)
--- a/
prod/net/jaekl/cfb/CFB.java
+++ b/
prod/net/jaekl/cfb/CFB.java
@@
-1,5
+1,12
@@
package net.jaekl.cfb;
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;
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.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;
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);
}
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;
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();
try (PrintWriter pw = new PrintWriter(System.out)){
cfb.doMain(pw, args);
pw.flush();
- } catch (SQLException | IOException exc) {
+ } catch (SQLException | IOException
| XmlParseException
exc) {
exc.printStackTrace();
}
}
exc.printStackTrace();
}
}