equal
deleted
inserted
replaced
123 throw new AssertionError("Unsupported platform: " + this); |
123 throw new AssertionError("Unsupported platform: " + this); |
124 } |
124 } |
125 } |
125 } |
126 |
126 |
127 String helperPath() { |
127 String helperPath() { |
128 Properties props = GetPropertyAction.getProperties(); |
128 Properties props = GetPropertyAction.privilegedGetProperties(); |
129 return helperPath(props.getProperty("java.home"), |
129 return helperPath(props.getProperty("java.home"), |
130 props.getProperty("os.arch")); |
130 props.getProperty("os.arch")); |
131 } |
131 } |
132 |
132 |
133 LaunchMechanism launchMechanism() { |
133 LaunchMechanism launchMechanism() { |
157 } |
157 } |
158 ); |
158 ); |
159 } |
159 } |
160 |
160 |
161 static Platform get() { |
161 static Platform get() { |
162 String osName = GetPropertyAction.getProperty("os.name"); |
162 String osName = GetPropertyAction.privilegedGetProperty("os.name"); |
163 |
163 |
164 if (osName.equals("Linux")) { return LINUX; } |
164 if (osName.equals("Linux")) { return LINUX; } |
165 if (osName.contains("OS X")) { return BSD; } |
165 if (osName.contains("OS X")) { return BSD; } |
166 if (osName.equals("SunOS")) { return SOLARIS; } |
166 if (osName.equals("SunOS")) { return SOLARIS; } |
167 if (osName.equals("AIX")) { return AIX; } |
167 if (osName.equals("AIX")) { return AIX; } |