Changeset 10218 for trunk/gsdl/perllib/plugins/ZIPPlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ZIPPlug.pm
r9960 r10218 43 43 # tar (for tar) 44 44 45 # 12/05/02 Added usage datastructure - John Thompson46 45 47 46 package ZIPPlug; … … 51 50 use util; 52 51 use Cwd; 52 #$%^ 53 use parse2; 53 54 54 55 … … 71 72 72 73 sub 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); 88 83 89 84 # BasPlug is explicitly set not to set process_exp if recursive plugin 90 85 # Not sure of this reasoning. Want it to be set in ZIPPlug, so explicitly 91 86 # pass it in as default value 87 88 ## do we need this???? --kjdon 92 89 if (!$self->{'process_exp'}) { 93 90 $self->{'process_exp'} = get_default_process_exp();
Note:
See TracChangeset
for help on using the changeset viewer.