Changeset 37188
- Timestamp:
- 2023-01-28T13:27:39+13:00 (15 months ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Configuration.java
r36229 r37188 69 69 static final public String CONFIG_XML_3 = "config3.xml"; 70 70 static final public String CONFIG_REMOTE_XML = "configRemote.xml"; 71 71 static final public String CONFIG_WEBSWING_XML = "configWebswing.xml"; 72 72 static final public String TEMPLATE_CONFIG_PREFIX = "xml/"; 73 73 static final public String FEDORA_CONFIG_PREFIX = "fedora-"; … … 641 641 String gli_title = getString("GLI.Title", GENERAL_SETTING); 642 642 String title = (gli_title=="") ? Gatherer.PROGRAM_NAME : gli_title; 643 643 if (Gatherer.isWebswing) { 644 title += " (webswing)"; 645 } 644 646 return title; 645 647 } -
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r36229 r37188 128 128 static public boolean isGsdlRemote = false; 129 129 static public boolean isLocalLibrary = false; 130 static public boolean isWebswing = false; 130 131 131 132 // for storing the original proxy settings on GLI startup … … 213 214 setCollectDirectoryPath(getGLIUserDirectoryPath() + "collect" + File.separator); 214 215 } 216 if (go.webswing) { 217 isWebswing = true; 218 } 215 219 // We have a local Greenstone. OR we have a gs2build folder inside 216 220 // the client-GLI folder (with which the Download panel becomes enabled) … … 238 242 System.err.println("Warning: Unable to make directory: " + collect_directory); 239 243 } 244 } 245 else if (isWebswing) { 246 Configuration.config_xml = Configuration.CONFIG_WEBSWING_XML; 240 247 } 241 248 else { … … 415 422 Configuration.setString("general.library_url", true, library_url_string); 416 423 } 417 else { // local greenstone: add shutdown hooks to forcibly stop the server on irregular termination424 else if(!isWebswing) { // local greenstone: add shutdown hooks to forcibly stop the server on irregular termination 418 425 // And start up the local library server, if that's what we want 426 /// but we don't need to do this if we are webswing. 419 427 420 428 // The Java virtual machine shuts down in response to two kinds of events: -
main/trunk/gli/src/org/greenstone/gatherer/GetOpt.java
r36091 r37188 40 40 public boolean no_load = false; 41 41 public boolean use_remote_greenstone = false; 42 public boolean webswing = false; 42 43 public boolean new_set = false; 43 44 public boolean run_gsdl3 = false; … … 153 154 //Use a remote Greenstone 154 155 } 156 // We are running inside webswing 157 else if (argument_name.equals(StaticStrings.WEBSWING_ARGUMENT)) { 158 webswing = true; 159 } 155 160 else if (argument_name.equals(StaticStrings.GSDL3_ARGUMENT)){ 156 161 //Use a remote Greenstone3 -
main/trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java
r36262 r37188 287 287 static final public String USE_METADATA_FILES_ARGUMENT = "use_metadata_files"; 288 288 static final public String USE_REMOTE_GREENSTONE_ARGUMENT = "-use_remote_greenstone"; 289 static final public String WEBSWING_ARGUMENT = "-webswing"; 289 290 static final public String URL_SEPARATOR_CHARACTER = "/"; 290 291 static final public String VALUE_ATTRIBUTE = "value";
Note:
See TracChangeset
for help on using the changeset viewer.