Changeset 23776

Show
Ignore:
Timestamp:
15.03.2011 15:02:05 (8 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

Files:
1 modified

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);