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/Gatherer.java

    r24904 r24905  
    925925    public static void collectDirectoryHasChanged(
    926926    String oldCollectPath, String newCollectPath, final Component container)
    927     {  
     927    {      
    928928        if(oldCollectPath.equals(newCollectPath)) {
    929929            return; // nothing to be done
     
    976976            String collectDir = Gatherer.getCollectDirectoryPath();
    977977            //collectDir = "\"" + collectDir.substring(0, collectDir.length()-1) + "\""; // remove file separator at end   
    978             collectDir = collectDir.substring(0, collectDir.length()-1); // remove file separator at end   
    979             Utility.updatePropertyConfigFile(getGsdlSiteConfigFile(), "collecthome", "\""+collectDir+"\"");
     978            collectDir = collectDir.substring(0, collectDir.length()-1); // remove file separator at end
     979            if(collectDir != null) {
     980                collectDir = "\""+collectDir+"\"";
     981            }
     982            Utility.updatePropertyConfigFile(getGsdlSiteConfigFile(), "collecthome", collectDir);
    980983            // if gsdlsite.cfg does not exist (if using server.exe for instance), the above method will just return
    981984           
Note: See TracChangeset for help on using the changeset viewer.