Changeset 10726 for trunk/gli/src/org/greenstone/gatherer/cdm
- Timestamp:
- 2005-10-14T15:19:36+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r10576 r10726 43 43 import org.greenstone.gatherer.gui.GComboBox; 44 44 import org.greenstone.gatherer.gui.GLIButton; 45 import org.greenstone.gatherer.remote.RemoteGreenstoneServer; 45 46 import org.greenstone.gatherer.util.JarTools; 46 47 import org.greenstone.gatherer.util.StaticStrings; … … 311 312 StringBuffer xml = null; 312 313 if (Gatherer.isGsdlRemote) { 313 String launch = Gatherer.cgiBase + "launch"; 314 launch += "?cmd=classinfo.pl"; 315 launch += "&xml=&language="+lang; 316 launch += "&class=" + getClassifierName(classifier); 317 318 System.err.println("*** launch = " + launch); 319 320 URL launch_url = new URL(launch); 321 URLConnection launch_connection = launch_url.openConnection(); 322 input_stream = launch_connection.getInputStream(); 323 xml = Utility.readXMLStream(input_stream); 314 String classinfo_output = RemoteGreenstoneServer.getScriptOptions("classinfo.pl", "&classifier=" + classifier); 315 xml = new StringBuffer(classinfo_output); 324 316 } 325 317 else { … … 386 378 387 379 if (Gatherer.isGsdlRemote) { 388 389 String lang = Configuration.getLanguage(); 390 391 String launch = Gatherer.cgiBase + "launch"; 392 launch += "?cmd=classinfo.pl"; 393 launch += "&xml=&language="+lang; 394 launch += "&listall="; 395 396 System.err.println("*** launch = " + launch); 397 398 try { 399 URL launch_url = new URL(launch); 400 URLConnection launch_connection = launch_url.openConnection(); 401 InputStream input_stream = launch_connection.getInputStream(); 402 StringBuffer xml = Utility.readXMLStream(input_stream); 403 loadClassifiers(xml); 404 } 405 catch (Exception error) { 406 System.err.println("Failed when trying to connect to : " + launch); 407 error.printStackTrace(); 408 } 409 410 } 380 String classinfo_output = RemoteGreenstoneServer.getScriptOptions("classinfo.pl", "&listall="); 381 loadClassifiers(new StringBuffer(classinfo_output)); 382 } 383 411 384 else { 412 413 385 // Retrieve the gsdl home directory... 414 386 String directory = LocalGreenstone.getDirectoryPath(); -
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r10611 r10726 511 511 if (Gatherer.isGsdlRemote) { 512 512 String collection_name = Gatherer.c_man.getCollection().getName(); 513 ZipTools.zipup(Gatherer.getCollectDirectoryPath(), collection_name, "collect.cfg", null, "", ""); 514 RemoteGreenstoneServer.upload_url_zip(collection_name, "etc", "", null); 513 RemoteGreenstoneServer.uploadCollectionFile(collection_name, collect_cfg_file); 515 514 } 516 515 } -
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.