logger.warn("Unable to set proxy settings - could not get Connection from joinpoint");
return;
}
// current proxy settings
IProxy proxy = preferenceManager.getProxyManager().getProxy();
// connection to-be inspect/adjusted
// evaluate server root for exclusion
String endpoint = connection.getServerName();
if (Utils.isEmpty(endpoint)) {
endpoint = connection.getForceProject().getEndpointServer();
}
if (proxy.isProxiesEnabled() && !proxy.isServerExcluded(endpoint)) {
// update w/ last proxy settings
updateConnectionProxy(connection, proxy);
} else {
// proxy is disabled, clear jvm-wide settings
connection.getConnectorConfig().setProxy(Proxy.NO_PROXY);