if (!socksServer.equals("")) {
// Must do the setup to get to the socks host
// Could check first to see if the user already specified it on the invocation line
if (System.getProperty("socksProxyHost") == null) {
properties.put("socksProxyHost", socksServer);
}
if (!socksPort.equals("")) {
if (System.getProperty("socksProxyPort") == null) {
properties.put("socksProxyPort", socksPort);
}
}
}
System.setProperties(properties); // put the updated properties back in System