Changeset 31641
- Timestamp:
- 2017-05-02T18:15:31+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/greenstone/Plugins.java
r31636 r31641 206 206 // Run pluginfo.pl to get the list of plugins 207 207 try { 208 String Bufferxml = null;208 String xml = null; 209 209 if (Gatherer.isGsdlRemote) { 210 210 String pluginfo_options = "&listall"; … … 213 213 } 214 214 String pluginfo_output = Gatherer.remoteGreenstoneServer.getScriptOptions("pluginfo.pl", pluginfo_options); 215 xml = new StringBuffer(pluginfo_output);215 xml = pluginfo_output; 216 216 } 217 217 else { … … 247 247 + exitVal); 248 248 } 249 // get the result: We expect XML to have come out of the process std error stream. 250 xml = new StringBuffer(process.getStdError()); 249 // get the result: We expect XML to have come out of the process std error stream. 250 xml = process.getStdError(); 251 252 // for pluginfo.pl -listall, we see a "AutoloadConverters" (PDFBox) message 253 // before actual XML output, which breaks XML parsing. Get rid of output before "<?xml" 254 int startIndex = xml.indexOf("<?xml"); 255 if(startIndex != 0) { 256 xml = xml.substring(startIndex); 257 } 251 258 ///System.err.println("*********\nPluginsList, got:\n" + xml + "\n**********\n"); 252 259 } … … 259 266 260 267 if (collection_name != null) { 261 collection_specific_plugins_list = parsePluginsListXML(xml .toString());268 collection_specific_plugins_list = parsePluginsListXML(xml); 262 269 } 263 270 else { 264 core_greenstone_plugins_list = parsePluginsListXML(xml .toString());271 core_greenstone_plugins_list = parsePluginsListXML(xml); 265 272 } 266 273 }
Note:
See TracChangeset
for help on using the changeset viewer.