Search in sources :

Example 1 with ProxyServiceFacade

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);
        }
    }
}
Also used : MavenSession(org.apache.maven.execution.MavenSession) Proxy(org.apache.maven.settings.Proxy) ProxyServiceFacade(org.eclipse.tycho.core.shared.ProxyServiceFacade)

Aggregations

MavenSession (org.apache.maven.execution.MavenSession)1 Proxy (org.apache.maven.settings.Proxy)1 ProxyServiceFacade (org.eclipse.tycho.core.shared.ProxyServiceFacade)1