Ignore:
Timestamp:
2009-01-12T11:18:22+13:00 (15 years ago)
Author:
kjdon
Message:

updated the rtl-gli branch with files from trunk. Result of a merge 14807:18318

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/branches/rtl-gli/src/org/greenstone/gatherer/collection/ScriptOptions.java

    r13753 r18358  
    225225
    226226        if (Gatherer.isGsdlRemote) {
    227         String script_output = RemoteGreenstoneServer.getScriptOptions(filename, "");
     227        String script_output = Gatherer.remoteGreenstoneServer.getScriptOptions(filename, "");
    228228        document = XMLTools.parseXML(new StringReader(script_output));
    229229        }
     
    247247        }
    248248
     249
    249250        // Create the process.
    250251        Runtime runtime = Runtime.getRuntime();
    251252        Process process = runtime.exec(args);
     253
     254       
     255        for (int i=0; i<args.length; i++) {
     256            System.err.print(args[i] + " ");
     257        }
     258        System.err.println("");
     259       
     260
     261
    252262        document = XMLTools.parseXML(process.getErrorStream());
     263       
     264        if (document == null) {
     265            // command has not generated XML, script has probably failed in some way
     266            for (int i=0; i<args.length; i++) {
     267            DebugStream.print(args[i] + " ");
     268            }
     269            DebugStream.println("");
     270        }
    253271        }
    254272
Note: See TracChangeset for help on using the changeset viewer.