(String protocol, String hostProp, String portProp)
| 138 | |
| 139 | |
| 140 | static void handleProxy(String protocol, String hostProp, String portProp) { |
| 141 | String proxyHost = get("proxy." + protocol + ".host"); |
| 142 | String proxyPort = get("proxy." + protocol + ".port"); |
| 143 | if (proxyHost != null && proxyHost.length() != 0 && |
| 144 | proxyPort != null && proxyPort.length() != 0) { |
| 145 | System.setProperty(hostProp, proxyHost); |
| 146 | System.setProperty(portProp, proxyPort); |
| 147 | } |
| 148 | |
| 149 | } |
| 150 | |
| 151 | |
| 152 | static public String getPreferencesPath() { |
no test coverage detected