Changeset 19313 for gli/trunk/src/org


Ignore:
Timestamp:
2009-05-04T15:23:59+12:00 (15 years ago)
Author:
ak19
Message:

To get the Downloading to work when using client-gli, needed to: 1. Pass in GSDLOS from the client-gli.sh script to gli. 2. GLI needs to pass GSDLHOME and GSDLOS as environment variables when executing the downloadfrom.pl as a process on Linux.

File:
1 edited

Legend:

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

    r19306 r19313  
    293293            prcs = rt.exec(cmd, env);
    294294        }
     295        else if(Gatherer.isGsdlRemote && Gatherer.isDownloadEnabled) {
     296            // Not Windows, but running client with download panel
     297            // Need to manually specify GSDLHOME and GSDLOS
     298            env = new String[2];
     299            env[0] = "GSDLHOME=" + Configuration.gsdl_path;
     300            env[1] = "GSDLOS=" + Gatherer.client_operating_system;
     301            prcs = rt.exec(cmd, env);
     302        }
    295303        else {
    296304            // Will inherit the GLI's environment, with GSDLHOME and GSDLOS set
Note: See TracChangeset for help on using the changeset viewer.