(String protocol, String hostProp, String portProp)
| 128 | |
| 129 | |
| 130 | static void handleProxy(String protocol, String hostProp, String portProp) { |
| 131 | String proxyHost = get("proxy." + protocol + ".host"); |
| 132 | String proxyPort = get("proxy." + protocol + ".port"); |
| 133 | if (proxyHost != null && proxyHost.length() != 0 && |
| 134 | proxyPort != null && proxyPort.length() != 0) { |
| 135 | System.setProperty(hostProp, proxyHost); |
| 136 | System.setProperty(portProp, proxyPort); |
| 137 | } |
| 138 | |
| 139 | } |
| 140 | |
| 141 | |
| 142 | static public String getPreferencesPath() { |
no test coverage detected