Ignore:
Timestamp:
2008-10-24T17:45:51+13:00 (16 years ago)
Author:
ak19
Message:

Turned class RemoteGreenstoneServer.java from an all-static class into a regular OOP class. It is now also split into three files (the other two being ActionQueue.java and RemoteGreenstoneServerAction.java).

File:
1 edited

Legend:

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

    r17009 r17612  
    217217        System.err.println("Script args: " + script_args);
    218218        buffered_output_stream = bos;
    219         String command_output = RemoteGreenstoneServer.runScript(collection_name, script_name, script_args, this);
     219        String command_output = Gatherer.remoteGreenstoneServer.runScript(collection_name, script_name, script_args, this);
    220220        status = (command_output.equals("") ? CANCELLED : OK);
    221221    }
     
    383383        if (type == NEW) {
    384384        if (Gatherer.isGsdlRemote) {
    385             RemoteGreenstoneServer.downloadCollection(col_name);
     385            Gatherer.remoteGreenstoneServer.downloadCollection(col_name);
    386386        }
    387387        }
     
    395395            }
    396396
    397             RemoteGreenstoneServer.downloadCollectionArchives(col_name);
     397            Gatherer.remoteGreenstoneServer.downloadCollectionArchives(col_name);
    398398
    399399            if (progress!=null) {
     
    428428            // Only need to download build.cfg file
    429429            File build_cfg_file = new File(CollectionManager.getLoadedCollectionBuildingDirectoryPath(), "build.cfg");
    430             RemoteGreenstoneServer.downloadCollectionFile(col_name, build_cfg_file);
     430            Gatherer.remoteGreenstoneServer.downloadCollectionFile(col_name, build_cfg_file);
    431431            }else{
    432432            // Only need to download buildConfig.xml file
    433433            File buildConfig_xml_file = new File(CollectionManager.getLoadedCollectionBuildingDirectoryPath(), "buildConfig.xml");
    434             RemoteGreenstoneServer.downloadCollectionFile(col_name, buildConfig_xml_file);
     434            Gatherer.remoteGreenstoneServer.downloadCollectionFile(col_name, buildConfig_xml_file);
    435435            }
    436436
Note: See TracChangeset for help on using the changeset viewer.