Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

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

    r9960 r10218  
    4343# tar (for tar)
    4444
    45 # 12/05/02 Added usage datastructure - John Thompson
    4645
    4746package ZIPPlug;
     
    5150use util;
    5251use Cwd;
     52#$%^
     53use parse2;
    5354
    5455
     
    7172
    7273sub new {
    73     my ($class) = @_;
    74     my $self = new BasPlug ("ZIPPlug", @_);
    75     $self->{'plugin_type'} = "ZIPPlug";
    76 
    77     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    78     my $option_list = $self->{'option_list'};
    79     push( @{$option_list}, $options );
    80 
    81     if (!parsargv::parse(\@_,
    82              q^process_exp/.*/^, \$self->{'process_exp'},
    83              "allow_extra_options")) {
    84     print STDERR "\nIncorrect options passed to ZIPPlug, check your collect.cfg configuration file\n";
    85     $self->print_txt_usage("");  # Use default resource bundle
    86         die "\n";
    87     }
     74
     75    my ($class) = shift (@_);
     76    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     77    push(@$pluginlist, $class);
     78
     79    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     80    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     81
     82    my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
    8883
    8984    # BasPlug is explicitly set not to set process_exp if recursive plugin
    9085    # Not sure of this reasoning.  Want it to be set in ZIPPlug, so explicitly
    9186    # pass it in as default value
     87   
     88    ## do we need this???? --kjdon
    9289    if (!$self->{'process_exp'}) {
    9390    $self->{'process_exp'} = get_default_process_exp();
Note: See TracChangeset for help on using the changeset viewer.