Add code to load bug categories and patterns from the FindBugs messages.xml file.
[cfb.git] / prod / net / jaekl / cfb / analyze / Analysis.java
index ab9fffbe798e90b8d23d52a3347008ec931316e3..e2f090f32b0245c701532c27606d2c7b01c0d979 100644 (file)
@@ -5,6 +5,7 @@ package net.jaekl.cfb.analyze;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.PrintWriter;
+import java.util.Date;
 
 import net.jaekl.cfb.xml.BugCollection;
 import net.jaekl.qd.xml.ParseErrorHandler;
@@ -17,9 +18,13 @@ import org.xml.sax.helpers.XMLReaderFactory;
 
 public class Analysis {
        BugCollection m_bugCollection;
+       String m_buildNumber;
+       Date m_date;    // Date/time when analysis was started
        
-       public Analysis() {
+       public Analysis(String buildNumber) {
                m_bugCollection = null;
+               m_buildNumber = buildNumber;
+               m_date = new Date();
        }
        
        public BugCollection getBugCollection() { return m_bugCollection; }