// Trigger a file download action, so that proxy configuration can be detected
log.debug("Detecting proxy configuration");
DownloadFileAction action = new DownloadFileAction();
action.setUrl("http://www.google-analytics.com/__utm.gif"); // just use the tracker's base url w/o any params
action.setAskForProxy(true);
action.setDeleteOnExit(true);
action.setRetryIfInterrupted(true);
action.setShowFileName(false);
action.setShowProgress(false);
action.setShowError(false);
action.setTargetFile(File.createTempFile("configure-proxy", ".tmp").getAbsolutePath());
action.execute(context);
I believe this should disable any progress display, but I still see some:
Starting Installer ...
0.0 MB of 0.0 MB (100.0%) at 17.1 kb/s
The "0.0 MB of 0.0 MB (100.0%) at 17.1 kb/s" here is the DownloadFileAction action executions output.
I had expected that if "action.setShowProgress(false);" that it would not emit any of these details.
I believe this should disable any progress display, but I still see some:
The "0.0 MB of 0.0 MB (100.0%) at 17.1 kb/s" here is the DownloadFileAction action executions output.
I had expected that if "action.setShowProgress(false);" that it would not emit any of these details.