public PluginCenter(File homeDir) throws MalformedURLException, IOException { hudsonHomeDir = homeDir; pluginsDir = new File(hudsonHomeDir, "plugins"); if (!pluginsDir.exists()) { pluginsDir.mkdirs(); } hudsonSecurityManager = HudsonSecurityEntitiesHolder.getHudsonSecurityManager(); proxyConfig = new ProxyConfiguration(homeDir); updateSiteManager = new UpdateSiteManager("default", hudsonHomeDir, proxyConfig); installedPluginManager = new InstalledPluginManager(pluginsDir); }
public InitialSetup(File homeDir, ServletContext context) throws MalformedURLException, IOException { hudsonHomeDir = homeDir; pluginsDir = new File(homeDir, "plugins"); servletContext = context; hudsonSecurityManager = HudsonSecurityEntitiesHolder.getHudsonSecurityManager(); proxyConfig = new ProxyConfiguration(homeDir); updateSiteManager = new UpdateSiteManager("default", hudsonHomeDir, proxyConfig); installedPluginManager = new InstalledPluginManager(pluginsDir); initSetupFile = new XmlFile(new File(homeDir, "initSetup.xml")); refreshUpdateCenterMetadataCache(); check(); // This is only created once during startup, so is effectively a singleton INSTANCE = this; }
hudson.proxy = new ProxyConfiguration(server , portNumber, Util.fixEmptyAndTrim(noProxyFor), Util.fixEmptyAndTrim(userName), Util.fixEmptyAndTrim(password), "on".equals(Util.fixNull(authNeeded))); hudson.proxy.save();
hudson.proxy = new ProxyConfiguration(server , portNumber, Util.fixEmptyAndTrim(noProxyFor), Util.fixEmptyAndTrim(userName), Util.fixEmptyAndTrim(password), "on".equals(Util.fixNull(authNeeded))); hudson.proxy.save();
hudson.proxy = new ProxyConfiguration(server , portNumber, Util.fixEmptyAndTrim(noProxyFor), Util.fixEmptyAndTrim(userName), Util.fixEmptyAndTrim(password), "on".equals(Util.fixNull(authNeeded))); hudson.proxy.save();
proxy = new ProxyConfiguration(getRootDir()); } catch (IOException e) { logger.error("Failed to load proxy configuration", e);