Changeset 21621

Show
Ignore:
Timestamp:
25.01.2010 19:58:35 (9 years ago)
Author:
ak19
Message:

Checking for existence of LuceneWrapper? to see if Lucene was disabled during compilation, else abort. Must be done here, since it has no effect if done in lucene_passes.pl script which is hereafter invoked by this lucenebuilder.pm module.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/lucenebuilder.pm

    r20683 r21621  
    5959 
    6060    $self->{'buildtype'} = "lucene"; 
    61  
     61     
     62    # If ENABLE_LUCENE was turned off during GS compilation, then we won't be able to 
     63    # continue. Check for existence of LuceneWrapper to see if Lucene was disabled. 
     64    my $lucene = &util::filename_cat($ENV{'GSDLHOME'},"bin","java","LuceneWrapper.jar"); 
     65    if(!-f $lucene) { 
     66    die "***** ERROR: $lucene does not exist\n";       
     67    } 
     68   
    6269    # Do we need to put exe on the end? 
    6370    my $exe = &util::get_os_exe ();