Ignore:
Timestamp:
2011-12-15T21:52:46+13:00 (12 years ago)
Author:
ak19
Message:

Now that quotes are necessary around collecthome in gsdlsite.cfg if there are spaces in the collecthome path, this needs to propagate into GLI: a dialog pops up on GLI exit if collecthome has changed. But collecthome has not changed if all that's been added is quotes around the collecthome variable as read from gsdlsite.cfg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r24904 r24905  
    543543        boolean showSettingsDlg = true;
    544544        // if collectdir was changed during GLI session (to something different from what's in gsdlsite), need to ask what to store
    545         if(gliColDir.equals(Gatherer.gsdlsite_collecthome+File.separator)) {   
     545        String gsdlsiteColdir = Gatherer.gsdlsite_collecthome.replace("\"", "");
     546        if(gliColDir.equals(gsdlsiteColdir+File.separator)) {   
    546547            showSettingsDlg = false;
    547         } else if(Gatherer.gsdlsite_collecthome.equals("") // both set to default coldir
     548        } else if(gsdlsiteColdir.equals("") // both set to default coldir
    548549                && gliColDir.equals(defaultColDir+File.separator)) {
    549550            showSettingsDlg = false;
     
    674675                if(serverColDir != null && defaultColDir.equals(serverColDir)) {                   
    675676                    serverColDir = null;
     677                }               
     678               
     679                if(serverColDir != null) {
     680                    serverColDir = serverColDir.replace("\"","");
     681                    serverColDir = "\""+serverColDir+"\"";
    676682                }
    677683                               
    678684                Gatherer.gsdlsite_collecthome = Utility.updatePropertyConfigFile(
    679                     Gatherer.getGsdlSiteConfigFile(), "collecthome", "\""+serverColDir+"\"");   
     685                    Gatherer.getGsdlSiteConfigFile(), "collecthome", serverColDir);
    680686               
    681687                colHomeDialog.dispose();
Note: See TracChangeset for help on using the changeset viewer.