Class EnvReport
java.lang.Object
net.sf.statsvn.util.EnvReport
This class provides a report to standard output of relevant JRE properties
and svn executable information. This output is intended to be included with
bug reports to help the StatSVN team diagnose common issues with wrong SVN
version, wrong JRE version, and locale settings.
- Author:
- jpdaigle jpdaigle@softwareengineering.ca
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfmtPropertiesForScreen(Properties props, String[] keySet) Format a set of key/value Properties for the screen, by right-aligning the key column.static Stringstatic PropertiesGet information about the current version of StatSVN.static PropertiesGet svn executable version info.static void
-
Method Details
-
main
-
getEnvReport
-
fmtPropertiesForScreen
Format a set of key/value Properties for the screen, by right-aligning the key column. Each key/value pair is printed and followed by a newline.- Parameters:
props- Property set to format for printout.keySet- The keys of interest to use. If null, use all keys defined in props.- Returns:
- Formatted text block with property keys and values, with a newline after every set.
-
getSvnVersionInfo
Get svn executable version info. We cannot use the excellent "ProcessUtils" because we are not running in the context of a StatSVN invocation. We use a plain old exec().- Returns:
- Property set
-
getStatSVNInfo
Get information about the current version of StatSVN.- Returns:
- Property set
-