Changeset 10468 for trunk/gsdl/perllib/lucenebuilder.pm
- Timestamp:
- 2005-08-10T16:19:17+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/lucenebuilder.pm
r10158 r10468 44 44 $self = bless $self, $class; 45 45 46 # load up the document processor for building47 # if a buildproc class has been created for this collection, use it48 # otherwise, use the lucene buildproc49 my ($buildprocdir, $buildproctype);50 if (-e "$ENV{'GSDLCOLLECTDIR'}/perllib/${collection}buildproc.pm") {51 $buildprocdir = "$ENV{'GSDLCOLLECTDIR'}/perllib";52 $buildproctype = "${collection}buildproc";53 } else {54 $buildprocdir = "$ENV{'GSDLHOME'}/perllib";55 $buildproctype = "lucenebuildproc";56 }57 require "$buildprocdir/$buildproctype.pm";58 59 eval("\$self->{'buildproc'} = new $buildproctype(\$collection, " .60 "\$source_dir, \$build_dir, \$keepold, \$verbosity, \$outhandle)");61 die "$@" if $@;62 63 46 $self->{'buildtype'} = "lucene"; 64 47 65 48 return $self; 49 } 50 51 sub default_buildproc { 52 my $self = shift (@_); 53 54 return "lucenebuildproc"; 66 55 } 67 56 … … 188 177 } 189 178 190 191 192 193 194 179 sub build_index { 195 180 my $self = shift (@_);
Note:
See TracChangeset
for help on using the changeset viewer.