Ignore:
Timestamp:
2008-06-05T09:29:32+12:00 (16 years ago)
Author:
kjdon
Message:

plugin overhaul: plugins renamed to xxPlugin, and in some cases the names are made more sensible. They now use the new base plugins. Hopefully we have better code reuse. Some of the plugins still need work done as I didn't want to spend another month doing this before committing it. Alos, I haven't really tested anything yet...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ZIPPlugin.pm

    r15865 r15872  
    11###########################################################################
    22#
    3 # ZIPPlug.pm --
     3# ZIPPlugin.pm --
    44# A component of the Greenstone digital library software
    55# from the New Zealand Digital Library Project at the
     
    4444
    4545
    46 package ZIPPlug;
     46package ZIPPlugin;
    4747
    48 use BasPlug;
     48use AbstractPlugin;
    4949use plugin;
    5050use util;
     
    5555
    5656BEGIN {
    57     @ZIPPlug::ISA = ('BasPlug');
     57    @ZIPPlugin::ISA = ('AbstractPlugin');
    5858}
    5959
    6060my $arguments =
    6161    [ { 'name' => "process_exp",
    62     'desc' => "{BasPlug.process_exp}",
     62    'desc' => "{BasePlugin.process_exp}",
    6363    'type' => "string",
    6464    'deft' => &get_default_process_exp(),
    6565    'reqd' => "no" } ];
    6666
    67 my $options = { 'name'     => "ZIPPlug",
    68         'desc'     => "{ZIPPlug.desc}",
     67my $options = { 'name'     => "ZIPPlugin",
     68        'desc'     => "{ZIPPlugin.desc}",
    6969        'abstract' => "no",
    7070        'inherits' => "yes",
     
    7777    push(@$pluginlist, $class);
    7878
    79     if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    80     if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     79    push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});
     80    push(@{$hashArgOptLists->{"OptList"}},$options);
    8181
    82     my $self = new BasPlug($pluginlist, $inputargs, $hashArgOptLists);
     82    my $self = new AbstractPlugin($pluginlist, $inputargs, $hashArgOptLists);
    8383
    8484    return bless $self, $class;
     
    112112    &util::mk_all_dir ($tmpdir);
    113113   
    114     print $outhandle "ZIPPlug: extracting $file_only to $tmpdir\n"
     114    print $outhandle "ZIPPlugin: extracting $file_only to $tmpdir\n"
    115115    if $self->{'verbosity'} > 1;
    116116   
Note: See TracChangeset for help on using the changeset viewer.