added version number to the report context

Former-commit-id: f783309c357851e7ef5d2b1c2dfc898bbe5368ee
This commit is contained in:
Jeremy Long
2014-01-17 13:15:14 -05:00
parent c9132de1ea
commit d0a7757b75

View File

@@ -38,6 +38,7 @@ import org.apache.velocity.tools.config.EasyFactoryConfiguration;
import org.owasp.dependencycheck.analyzer.Analyzer;
import org.owasp.dependencycheck.data.nvdcve.DatabaseProperties;
import org.owasp.dependencycheck.dependency.Dependency;
import org.owasp.dependencycheck.utils.Settings;
/**
* The ReportGenerator is used to, as the name implies, generate reports. Internally the generator uses the Velocity
@@ -96,6 +97,7 @@ public class ReportGenerator {
context.put("dependencies", dependencies);
context.put("analyzers", analyzers);
context.put("properties", properties);
context.put("version", Settings.getString("application.version", "Unknown"));
}
/**