- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ComputerName (0.1 sec)
-
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
} public void test_getHostnamet() { assertNotNull(systemHelper.getHostname()); try { envMap.put("COMPUTERNAME", "xxx"); assertEquals("xxx", systemHelper.getHostname()); } finally { envMap.remove("COMPUTERNAME"); } try { envMap.put("HOSTNAME", "yyy"); assertEquals("yyy", systemHelper.getHostname());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 18.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SystemHelper.java
shutdownHookList.add(hook); } public String getHostname() { final Map<String, String> env = getEnvMap(); if (env.containsKey("COMPUTERNAME")) { return env.get("COMPUTERNAME"); } if (env.containsKey("HOSTNAME")) { return env.get("HOSTNAME"); } try { return InetAddress.getLocalHost().getHostAddress();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Oct 17 12:10:08 UTC 2024 - 27.2K bytes - Viewed (0)