Changeset 18396


Ignore:
Timestamp:
2009-01-15T16:35:01+13:00 (15 years ago)
Author:
ak19
Message:

Storing the commandOutput, in case any data is returned from runninig the script on the server which then needs to be used by the client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/shell/GShell.java

    r17612 r18396  
    8181    /** Arguments to be given to the process (including the executable you are calling. */
    8282    private String args[] = null;
     83    /** The command_output returned from executing a process */
     84    private String commandOutput = null;
     85
    8386    /** Elements in process type enumeration. */
    8487    static final public int BUILD = 0;
     
    181184    }
    182185
     186    public String getCommandOutput() { return commandOutput; }
     187    public void resetCommandOutput() { commandOutput = null; }
    183188
    184189    private void runRemote(String[] args, BufferedOutputStream bos)
     
    218223        buffered_output_stream = bos;
    219224        String command_output = Gatherer.remoteGreenstoneServer.runScript(collection_name, script_name, script_args, this);
     225        this.commandOutput = command_output;
    220226        status = (command_output.equals("") ? CANCELLED : OK);
    221227    }
Note: See TracChangeset for help on using the changeset viewer.