This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241187

Summary: NB build should support downloading of dependencies behind a corporate proxy
Product: apisupport Reporter: jmborer <jmborer>
Component: HarnessAssignee: pgebauer <pgebauer>
Status: NEW ---    
Severity: normal CC: jrechtacek, jtulach
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: patched DownloadBinaries

Description jmborer 2014-01-30 16:09:36 UTC
Created attachment 144603 [details]
patched DownloadBinaries

Today was the first time I tried to build the platform behind a corporate firewall that requires authentication.

Unfortunately, DownloadBinaries doesn't support it proxy especially when authentication is required. I finally managed to patch the code so that it now works (it is attached to this issue). 

The usage is simple, you just need to define some system properties:

* "http.proxyHost": the IP or name of the proxy
* "http.proxyPort": the port

If authentication is required (was my case):
* "proxy.authentication.user": the user name. on windows probably you will need to prefix with the domain: DOMAIN\user
* "proxy.authentication.password": obviously, the password

I would really appreciate if my patch could be included in next releases of NB.
Comment 1 Jaroslav Tulach 2014-01-30 16:21:43 UTC
$ hg diff 
is the standard way to generate a diff.

Jirka is our expert on proxies.
Comment 2 jmborer 2014-01-30 16:25:06 UTC
(In reply to Jaroslav Tulach from comment #1)
> $ hg diff 
> is the standard way to generate a diff.

I know, but unfortunately I am a bit behind a "Fort Knox" proxy. I cannot easily use hg. It was simpler for me to download the zip and send you the "patch". Sorry for the inconvenience.

> Jirka is our expert on proxies.

Looking forward hearing from him about this topic.