Add local variable information to DB store.
[cfb.git] / prod / net / jaekl / cfb / analyze / Analyzer.java
index 03aeb1c6a4db718198e2eca9da9b9538829eab39..1ac5677abb50da33a7e85cfaf0882b26af31edc7 100644 (file)
@@ -6,6 +6,7 @@ import java.io.File;
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.text.MessageFormat;
+import java.util.Date;
 import java.util.Locale;
 import java.util.Locale.Category;
 
@@ -33,6 +34,8 @@ public class Analyzer {
                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.
@@ -46,6 +49,7 @@ public class Analyzer {
                        return null;
                }
                
+               result.setEnd(new Date());
                result.parse(new InputSource(fbOutput.getAbsolutePath()));
                result.dump(pw);                        
                return result;