Changeset 1754


Ignore:
Timestamp:
2000-12-07T11:44:54+13:00 (23 years ago)
Author:
say1
Message:

added support for jar files (which are actually just fancy zip files)

File:
1 edited

Legend:

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

    r1503 r1754  
    3030# gzip (.gz, .z, .tgz, .taz)
    3131# bzip (.bz)
    32 # zip (.zip)
     32# zip (.zip .jar)
    3333# tar (.tar)
    3434#
     
    7575    my $outhandle = $self->{'outhandle'};
    7676
    77     if ($file =~ /\.(gz|tgz|z|taz|bz|zip|tar)$/i) {
     77    if ($file =~ /\.(gz|tgz|z|taz|bz|zip|jar|tar)$/i) {
    7878
    7979    my $filename = &util::filename_cat ($base_dir, $file);
     
    9696    if ($file =~ /\.bz$/i) {
    9797        $self->bunzip ($file_only);
    98     } elsif ($file =~ /\.zip$/i) {
     98    } elsif ($file =~ /\.(zip|jar)$/i) {
    9999        $self->unzip ($file_only);
    100100    } elsif ($file =~ /\.tar$/i) {
Note: See TracChangeset for help on using the changeset viewer.