()
| 216 | dir = AccessController.doPrivileged( |
| 217 | new PrivilegedAction<String>() { |
| 218 | @Override |
| 219 | public String run() { |
| 220 | String home = System.getProperty("java.home"); |
| 221 | String newdir = home + File.separator + "conf"; |
| 222 | File conf = new File(newdir); |
| 223 | if (conf.exists()) |
| 224 | return newdir + File.separator; |
| 225 | else |
| 226 | return home + File.separator + |
| 227 | "lib" + File.separator; |
| 228 | } |
| 229 | }); |
| 230 | } catch (Exception ex) { |
| 231 | // ignore any exceptions |
nothing calls this directly
no test coverage detected