equal
deleted
inserted
replaced
31 import java.security.PrivilegedAction; |
31 import java.security.PrivilegedAction; |
32 import java.security.PrivilegedActionException; |
32 import java.security.PrivilegedActionException; |
33 import java.security.PrivilegedExceptionAction; |
33 import java.security.PrivilegedExceptionAction; |
34 |
34 |
35 public class Platform { |
35 public class Platform { |
36 // Use this property to specify docker location on your system. |
|
37 // E.g.: "/usr/local/bin/docker". We define this constant here so |
|
38 // that it can be used in VMProps as well which checks docker support |
|
39 // via this command |
|
40 public static final String DOCKER_COMMAND = |
|
41 System.getProperty("jdk.test.docker.command", "docker"); |
|
42 public static final String vmName = privilegedGetProperty("java.vm.name"); |
36 public static final String vmName = privilegedGetProperty("java.vm.name"); |
43 public static final String vmInfo = privilegedGetProperty("java.vm.info"); |
37 public static final String vmInfo = privilegedGetProperty("java.vm.info"); |
44 private static final String osVersion = privilegedGetProperty("os.version"); |
38 private static final String osVersion = privilegedGetProperty("os.version"); |
45 private static int osVersionMajor = -1; |
39 private static int osVersionMajor = -1; |
46 private static int osVersionMinor = -1; |
40 private static int osVersionMinor = -1; |