- Timestamp:
- 2009-01-12T11:18:22+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/branches/rtl-gli/src/org/greenstone/gatherer/collection/ScriptOptions.java
r13753 r18358 225 225 226 226 if (Gatherer.isGsdlRemote) { 227 String script_output = RemoteGreenstoneServer.getScriptOptions(filename, "");227 String script_output = Gatherer.remoteGreenstoneServer.getScriptOptions(filename, ""); 228 228 document = XMLTools.parseXML(new StringReader(script_output)); 229 229 } … … 247 247 } 248 248 249 249 250 // Create the process. 250 251 Runtime runtime = Runtime.getRuntime(); 251 252 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 252 262 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 } 253 271 } 254 272
Note:
See TracChangeset
for help on using the changeset viewer.