Ignore:
Timestamp:
2017-07-28T19:56:48+12:00 (7 years ago)
Author:
ak19
Message:

Part of previous commit. GLI needs to pass WGETRC env var down to perl running wget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/download/ServerInfoDialog.java

    r31820 r31831  
    115115            // Specify proxies as environment variables
    116116            // Need to manually specify GSDLHOME and GSDLOS also
    117             env = new String[5];
     117            env = new String[6];
    118118                    proxy_url = proxy_url.replaceAll("http://","");
    119119            env[0] = "http_proxy=http://"+proxy_url;
     
    123123            env[3] = "GSDLHOME=" + Configuration.gsdl_path;
    124124            env[4] = "GSDLOS=" + Gatherer.client_operating_system;
     125            env[5] = "WGETRC=" + LocalGreenstone.getBinOSDirectoryPath(Gatherer.client_operating_system)+"wgetrc"; // teach it where the wgetrc file lives, in gs2build/bin/<os>
    125126            prcs = new SafeProcess(command, env, null);
    126127        }
Note: See TracChangeset for help on using the changeset viewer.