use of org.eclipse.tycho.core.shared.ProxyServiceFacade in project tycho by eclipse.
the class OSGiProxyConfigurator method afterFrameworkStarted.
@Override
public void afterFrameworkStarted(EmbeddedEquinox framework) {
MavenSession session = context.getSession();
ProxyServiceFacade proxyService = framework.getServiceFactory().getService(ProxyServiceFacade.class);
// make sure there is no old state from previous aborted builds
clearProxyConfiguration(proxyService);
for (Proxy proxy : session.getSettings().getProxies()) {
if (proxy.isActive()) {
setProxy(proxyService, proxy);
}
}
}
Aggregations