Ignore:
Timestamp:
2001-10-09T17:21:29+13:00 (23 years ago)
Author:
sjboddie
Message:

The build process now creates a summary of how many files were included,
which were rejected, etc. A link to a page containing this summary is
provided from the final page of the collector (once the collection is built
successfully) and from the default "about this collection" text for
collections built by the collector.

Also did a little bit of tidying in a couple of places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgbuilder.pm

    r2772 r2785  
    6262    my ($class, $collection, $source_dir, $build_dir, $verbosity,
    6363    $maxdocs, $debug, $keepold, $allclassifications,
    64     $outhandle, $no_text) = @_;
     64    $outhandle, $no_text, $failhandle) = @_;
    6565
    6666    $outhandle = STDERR unless defined $outhandle;
    6767    $no_text = 0 unless defined $no_text;
     68    $failhandle = STDERR unless defined $failhandle;
    6869
    6970    # create an mgbuilder object
     
    7879              'outhandle'=>$outhandle,
    7980              'no_text'=>$no_text,
     81              'failhandle'=>$failhandle,
    8082              'notbuilt'=>[]    # indexes not built
    8183              }, $class;
     
    134136   
    135137    # load all the plugins
    136     $self->{'pluginfo'} = &plugin::load_plugins ($plugins, $verbosity, $outhandle);
     138    $self->{'pluginfo'} = &plugin::load_plugins ($plugins, $verbosity, $outhandle, $failhandle);
    137139    if (scalar(@{$self->{'pluginfo'}}) == 0) {
    138140    print $outhandle "No plugins were loaded.\n";
Note: See TracChangeset for help on using the changeset viewer.