Show
Ignore:
Timestamp:
05.10.2011 20:32:16 (9 years ago)
Author:
ak19
Message:

Ensuring that classpath and filenames are in quotes, in order to preserve spaces, when launching java jdbm classes from cplusplus web server code

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/src/lib/jdbmnaiveclass.cpp

    r22089 r24729  
    132132 
    133133  char cmd[512]; 
    134   sprintf(cmd,"java -cp %s JdbDel %s %s",classpath_cstr_, 
     134  sprintf(cmd,"java -cp \"%s\" JdbDel \"%s\" %s",classpath_cstr_, 
    135135      openfile_cstr,key_cstr); 
    136136 
     
    169169 
    170170  char cmd[512]; 
    171   sprintf(cmd,"java -cp %s JdbGet %s %s",classpath_cstr_, 
     171  sprintf(cmd,"java -cp \"%s\" JdbGet \"%s\" %s",classpath_cstr_, 
    172172      openfile_cstr,key_cstr); 
    173173 
     
    231231 
    232232  char cmd[512]; 
    233   sprintf(cmd,"java -cp %s JdbKeys %s",classpath_cstr_, 
     233  sprintf(cmd,"java -cp \"%s\" JdbKeys \"%s\"",classpath_cstr_, 
    234234      openfile_cstr); 
    235235 
     
    291291 
    292292  char cmd[512]; 
    293   sprintf(cmd,"java -cp %s JdbSet %s %s %s", 
     293  sprintf(cmd,"java -cp \"%s\" JdbSet \"%s\" %s %s", 
    294294      classpath_cstr_,openfile_cstr,key_cstr,data_cstr); 
    295295