Changeset 11163


Ignore:
Timestamp:
2006-01-30T15:03:38+13:00 (18 years ago)
Author:
kjdon
Message:

added some quotes into the java command, in case we are installed in a directory with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/lucene_query.pl

    r10317 r11163  
    5656    my $classpath = &util::filename_cat($bin_java,"LuceneWrap.jar");
    5757
    58     my $java_lucene = "java -classpath $classpath GS2LuceneQuery";
     58    my $java_lucene = "java -classpath \"$classpath\" GS2LuceneQuery";
    5959    my $java_cmd = "$java_lucene";
    6060
     
    6464    $out_file = "";
    6565    }
    66     if (!open (PIPEOUT, "| $java_cmd $full_indexdir $out_file")) {
     66    if (!open (PIPEOUT, "| $java_cmd \"$full_indexdir\" $out_file")) {
    6767    die "$PROGNAME - couldn't run $java_cmd\n";
    6868    }
     
    9999    exit 1;
    100100    }
    101 
    102 
    103101    open_java_lucene($full_indexdir, $out_file);
    104102
Note: See TracChangeset for help on using the changeset viewer.