- Timestamp:
- 2005-10-14T15:19:36+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java
r10576 r10726 47 47 import org.greenstone.gatherer.gui.ModalDialog; 48 48 import org.greenstone.gatherer.gui.WarningDialog; 49 import org.greenstone.gatherer.remote.RemoteGreenstoneServer; 49 50 import org.greenstone.gatherer.util.JarTools; 50 51 import org.greenstone.gatherer.util.StaticStrings; … … 443 444 StringBuffer xml = null; 444 445 if (Gatherer.isGsdlRemote) { 445 String launch = Gatherer.cgiBase + "launch"; 446 launch += "?cmd=pluginfo.pl"; 447 launch += "&xml=&language="+lang; 448 launch += "&plug=" + getPluginName(plugin); 449 450 System.err.println("*** launch = " + launch); 451 452 URL launch_url = new URL(launch); 453 URLConnection launch_connection = launch_url.openConnection(); 454 input_stream = launch_connection.getInputStream(); 455 xml = Utility.readXMLStream(input_stream); 446 String pluginfo_output = RemoteGreenstoneServer.getScriptOptions("pluginfo.pl", "&plugin=" + plugin); 447 xml = new StringBuffer(pluginfo_output); 456 448 } 457 449 else { … … 514 506 if(library == null) { 515 507 library = new ArrayList(); 508 516 509 if (Gatherer.isGsdlRemote) { 517 518 String lang = Configuration.getLanguage(); 519 520 String launch = Gatherer.cgiBase + "launch"; 521 launch += "?cmd=pluginfo.pl"; 522 launch += "&xml=&language="+lang; 523 launch += "&listall="; 524 525 System.err.println("*** launch = " + launch); 526 527 try { 528 URL launch_url = new URL(launch); 529 URLConnection launch_connection = launch_url.openConnection(); 530 InputStream input_stream = launch_connection.getInputStream(); 531 StringBuffer xml = Utility.readXMLStream(input_stream); 532 loadPlugins(xml); 533 } 534 catch (Exception error) { 535 System.err.println("Failed when trying to connect to : " + launch); 536 error.printStackTrace(); 537 } 538 539 } 510 String pluginfo_output = RemoteGreenstoneServer.getScriptOptions("pluginfo.pl", "&listall="); 511 loadPlugins(new StringBuffer(pluginfo_output)); 512 } 513 540 514 else { 541 515 // Retrieve the gsdl home directory...
Note:
See TracChangeset
for help on using the changeset viewer.