Changeset 10577


Ignore:
Timestamp:
2005-08-29T09:39:53+12:00 (19 years ago)
Author:
mdewsnip
Message:

Rearranged things a little for the West Yorkshire stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/ScriptOptions.java

    r10370 r10577  
    289289    // Run the required program.
    290290    try {
    291         String args[];
     291        Document document;
    292292        if (Gatherer.isGsdlRemote) {
    293             String launch  = Gatherer.cgiBase + "launch";
    294             launch += "?cmd=" + filename;
    295             launch += "&xml=&language="+lang;
    296 
    297             System.err.println("*** launch = " + launch);
    298 
    299             URL launch_url = new URL(launch);
    300             URLConnection launch_connection = launch_url.openConnection();
    301             input_stream = launch_connection.getInputStream();
     293        String launch  = Gatherer.cgiBase + "launch";
     294        launch += "?cmd=" + filename;
     295        launch += "&xml=&language="+lang;
     296
     297        System.err.println("*** launch = " + launch);
     298
     299        URL launch_url = new URL(launch);
     300        URLConnection launch_connection = launch_url.openConnection();
     301        input_stream = launch_connection.getInputStream();
     302        document = XMLTools.parseXML(input_stream);
    302303        }
    303304        else {
     305        String args[];
    304306        if(Utility.isWindows()) {
    305307            args = new String[6];
     
    324326
    325327        input_stream = process.getErrorStream();
    326         }
    327 
    328         Document document = XMLTools.parseXML(input_stream);
     328        document = XMLTools.parseXML(input_stream);
     329        }
     330
    329331        arguments_element = document.getDocumentElement();
    330332    }
Note: See TracChangeset for help on using the changeset viewer.