[MNG-4944] Include JRE vendor in version info

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1050717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-12-18 21:13:02 +00:00
parent a670011864
commit 6b46e51179
1 changed files with 4 additions and 3 deletions

View File

@ -73,15 +73,16 @@ public final class CLIReportingUtils
stdout.println( msg ); stdout.println( msg );
stdout.println( "Java version: " + System.getProperty( "java.version", "<unknown java version>" ) ); stdout.println( "Java version: " + System.getProperty( "java.version", "<unknown java version>" )
+ ", vendor: " + System.getProperty( "java.vendor", "<unknown vendor>" ) );
stdout.println( "Java home: " + System.getProperty( "java.home", "<unknown java home>" ) ); stdout.println( "Java home: " + System.getProperty( "java.home", "<unknown java home>" ) );
stdout.println( "Default locale: " + Locale.getDefault() + ", platform encoding: " stdout.println( "Default locale: " + Locale.getDefault() + ", platform encoding: "
+ System.getProperty( "file.encoding", "<unknown encoding>" ) ); + System.getProperty( "file.encoding", "<unknown encoding>" ) );
stdout.println( "OS name: \"" + Os.OS_NAME + "\" version: \"" + Os.OS_VERSION + "\" arch: \"" + Os.OS_ARCH stdout.println( "OS name: \"" + Os.OS_NAME + "\", version: \"" + Os.OS_VERSION + "\", arch: \"" + Os.OS_ARCH
+ "\" Family: \"" + Os.OS_FAMILY + "\"" ); + "\", family: \"" + Os.OS_FAMILY + "\"" );
} }
private static String reduce( String s ) private static String reduce( String s )