You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2010/06/01 15:40:41 UTC

svn commit: r950071 - /ant/sandbox/usertests/env/src/main/org/apache/ant/usertests/env/Main.java

Author: bodewig
Date: Tue Jun  1 13:40:40 2010
New Revision: 950071

URL: http://svn.apache.org/viewvc?rev=950071&view=rev
Log:
Provide some information about the Java VM as well

Modified:
    ant/sandbox/usertests/env/src/main/org/apache/ant/usertests/env/Main.java

Modified: ant/sandbox/usertests/env/src/main/org/apache/ant/usertests/env/Main.java
URL: http://svn.apache.org/viewvc/ant/sandbox/usertests/env/src/main/org/apache/ant/usertests/env/Main.java?rev=950071&r1=950070&r2=950071&view=diff
==============================================================================
--- ant/sandbox/usertests/env/src/main/org/apache/ant/usertests/env/Main.java (original)
+++ ant/sandbox/usertests/env/src/main/org/apache/ant/usertests/env/Main.java Tue Jun  1 13:40:40 2010
@@ -29,6 +29,14 @@ public class Main {
         System.out.println("Detected OS_NAME: " + Os.OS_NAME);
         System.out.println("Detected OS_ARCH: " + Os.OS_ARCH);
         System.out.println("Detected OS_VERSION: " + Os.OS_VERSION);
+        System.out.println("Detected Java Version: "
+                           + System.getProperty("java.version"));
+        System.out.println("Detected Java Vendor: "
+                           + System.getProperty("java.vendor"));
+        System.out.println("Detected Java VM Version: "
+                           + System.getProperty("java.vm.version"));
+        System.out.println("Detected Java VM Name: "
+                           + System.getProperty("java.vm.name"));
 
         final boolean verbose = args.length > 0 && args[0].equals("-v");
         Vector oldStyle = Execute.getProcEnvironment();