Ignore:
Timestamp:
2010-08-17T18:43:08+12:00 (14 years ago)
Author:
ak19
Message:

Next set of changes for ticket 152: moveable collectdir (so that collect dir can be on a pen drive). These are changes for when GLI's LocalLibraryServer tells server.jar to reconfigure itself (to update the COLLECTHOME alias in the apache web server's httpd.conf file when the collectdir has changed) and restart the server.

File:
1 edited

Legend:

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

    r22605 r22661  
    829829
    830830    // non-destructive update of gsdl(3)site.cfg (comments preserved)
    831     Utility.updatePropertyConfigFile(gsdlsitecfg, "collecthome", Gatherer.getCollectDirectoryPath());
     831    String collectDir = Gatherer.getCollectDirectoryPath();
     832    collectDir = collectDir.substring(0, collectDir.length()-1); // remove file separator at end   
     833    Utility.updatePropertyConfigFile(gsdlsitecfg, "collecthome", collectDir);
     834
     835    if(!Gatherer.GS3 && Gatherer.isLocalLibrary) {
     836        // for Images in the collection to work, the apache web server
     837        // configuration's COLLECTHOME should be updated on collectdir change.
     838        // Does nothing for server.exe at the moment
     839
     840        LocalLibraryServer.reconfigure();
     841    }
    832842    }
    833843
Note: See TracChangeset for help on using the changeset viewer.