Ignore:
Timestamp:
2011-12-15T20:21:40+13:00 (12 years ago)
Author:
ak19
Message:

Need quotes around collecthome in gsdlsite.cfg to handle spaces and brackets in any non-standard collecthome path.

File:
1 edited

Legend:

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

    r24875 r24904  
    902902            } else {
    903903                gsdlsite_collecthome = Utility.updatePropertyConfigFile(
    904                 gsdlsitecfg, "collecthome", coldir); // no file separator
     904                gsdlsitecfg, "collecthome", "\""+coldir+"\""); // no file separator
    905905                // if gsdlsite.cfg does not exist (if using server.exe for instance), the above method will just return
    906906            }
     
    977977            //collectDir = "\"" + collectDir.substring(0, collectDir.length()-1) + "\""; // remove file separator at end   
    978978            collectDir = collectDir.substring(0, collectDir.length()-1); // remove file separator at end   
    979             Utility.updatePropertyConfigFile(getGsdlSiteConfigFile(), "collecthome", collectDir);
     979            Utility.updatePropertyConfigFile(getGsdlSiteConfigFile(), "collecthome", "\""+collectDir+"\"");
    980980            // if gsdlsite.cfg does not exist (if using server.exe for instance), the above method will just return
    981981           
Note: See TracChangeset for help on using the changeset viewer.