Changeset 23776


Ignore:
Timestamp:
2011-03-15T15:02:05+13:00 (13 years ago)
Author:
davidb
Message:

Temp file used in Windows code for lucene now written out to %TEMP% area. This is to help lucene run from CD-ROM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/lucenesearch.cpp

    r18458 r23776  
    165165  filename.append(".txt");
    166166 
    167   text_t out_file = filename_cat(collectdir, filename);
     167  // Used concat 'collectdir' with 'filename' but this ran into problems
     168  // when run from a CD-ROM.
     169  // Since this is Windows only code, now changed to use %TEMP% directory,
     170  // a location designed to be writable
     171
     172  text_t out_file = filename_cat(getenv("TEMP"),filename);
     173
    168174  cmd += " -out \"" + out_file + "\"";
    169175  int rv = gsdl_system(cmd, true, cerr);
Note: See TracChangeset for help on using the changeset viewer.