Add ability to output HTML report of differences found between two versions.
[cfb.git] / prod / net / jaekl / cfb / store / Run.java
1 package net.jaekl.cfb.store;
2
3 import net.jaekl.cfb.CfbBundle;
4 import net.jaekl.cfb.analyze.Analysis;
5
6 public class Run {
7         java.util.Date m_analysisStart;
8         String         m_buildNumber;
9         
10         public Run(Analysis analysis)
11         {
12                 m_analysisStart = analysis.getStart();
13                 m_buildNumber = analysis.getBuildNumber();
14         }
15         
16         public java.util.Date getAnalysisStart() { return new java.util.Date(m_analysisStart.getTime()); }
17         public String getBuildNumber() { return m_buildNumber; }
18         
19         public String constructVersionText(CfbBundle bundle) 
20         {
21                 if (null == m_buildNumber) {
22                         return bundle.get(CfbBundle.ANALYZED_AT, m_analysisStart);
23                 }
24                 return bundle.get(CfbBundle.VERSION_NUM, m_analysisStart, m_buildNumber);
25         }
26 }