- Timestamp:
- 2011-08-27T20:54:15+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/greenstone/LocalLibraryServer.java
r24505 r24508 593 593 return false; // don't need to launch the server, one has been independently launched 594 594 } else { 595 // else we try using the glisite configfile595 // else we try using the "gli." prefix to access the url property in the config file 596 596 llssite_cfg_file.useGLImode(); 597 597 //llssite_cfg_file.set(); … … 703 703 // first test if server was started independently of GLI 704 704 // if so, the config file we'd be using would be llssite.cfg 705 if(!usingGSImode()) { // if we were using llssite_cfg, this would have loaded it in706 // else we try using the glisite configfile705 if(!usingGSImode()) { // this step will try to access the url and other 706 // special properties in the config file using the "gli." prefix. 707 707 useGLImode(); 708 708 } … … 734 734 // dir because the non-standard collectDir didn't exist/wasn't specified in the GLI config 735 735 // file, then write out the new collectDir (minus file separator at end) to the lls site conf in use 736 // Regardless of what collecthome value was in the llssite /glisitefile, we end up resetting it here736 // Regardless of what collecthome value was in the llssite file, we end up resetting it here 737 737 if (isPersistentServer) { // server.exe, so we're dealing with a local GS2 738 738 put(COLLECTHOME, collectDir); … … 743 743 } 744 744 745 /** Tries to get a glisite.cfg file and then loads it, setting it as the configFile */ 745 /** Changes the mode to GLI mode (since GSI was not launched independently but by GLI): in this 746 * mode, the "gli." prefix is used to access GLI specific properties from the config file */ 746 747 public void useGLImode() 747 748 { … … 755 756 * (in which case the server URL would be URL_PENDING). 756 757 * This method returns true if the server interface has already started 757 * and, if so, it would have loaded in the llssite_cfg configFile. 758 * and, if so, it would have loaded in the configFile. It sets the mode to 759 * GSI Mode (meaning GSI was launched independently): no prefix is used to 760 * access properties from the config file. 758 761 */ 759 762 public boolean usingGSImode() { … … 807 810 808 811 /** @return the cmd-line parameter for the configfile used to launch 809 * the server through GLI: --config <glisite.cfg/llssite.cfg file path>. */812 * the server through GLI: --config=<llssite.cfg file path>. */ 810 813 public String getSiteConfigFilename() { 811 814 return SPECIFIC_CONFIG + configFile.getAbsolutePath();
Note:
See TracChangeset
for help on using the changeset viewer.