Changeset 10478


Ignore:
Timestamp:
2005-08-11T10:35:04+12:00 (19 years ago)
Author:
kjdon
Message:

arcPlug now knows about keepold, and if its not set, it wont try to do incremental building

Location:
trunk/gsdl/perllib
Files:
4 edited

Legend:

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

    r10473 r10478  
    9494    push @global_opts, "-separate_cjk";
    9595    }
    96     $self->{'pluginfo'} = &plugin::load_plugins ($plugins, $verbosity, $outhandle, $failhandle, \@global_opts);
     96    $self->{'pluginfo'} = &plugin::load_plugins ($plugins, $verbosity, $outhandle, $failhandle, \@global_opts, $keepold);
    9797   
    9898    if (scalar(@{$self->{'pluginfo'}}) == 0) {
  • trunk/gsdl/perllib/plugin.pm

    r10218 r10478  
    4545sub load_plugins {
    4646    my ($plugin_list) = shift @_;
    47     ($verbosity, $outhandle, $failhandle, $globaloptions) = @_; # globals
     47    my $keepold;
     48    ($verbosity, $outhandle, $failhandle, $globaloptions, $keepold) = @_; # globals
    4849    my @plugin_objects = ();
    49 
     50    $keepold = 0 unless (defined $keepold && $keepold == 1);
     51    print STDERR "keepold = $keepold\n";
    5052    $verbosity = 2 unless defined $verbosity;
    5153    $outhandle = 'STDERR' unless defined $outhandle;
     
    8991    # initialize plugin
    9092    $plugobj->init($verbosity, $outhandle, $failhandle);
     93   
     94    $plugobj->set_keepold($keepold);
    9195
    9296    # add this object to the list
  • trunk/gsdl/perllib/plugins/ArcPlug.pm

    r10419 r10478  
    148148        }
    149149        else {
    150         if (!$processor->is_incremental_capable()) {
     150        if (!$processor->is_incremental_capable() || !$self->{'keepold'}) {
    151151            $process_file = 1;
    152152        }
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r10446 r10478  
    210210
    211211
     212sub set_keepold {
     213    my $self = shift(@_);
     214    my ($keepold) = @_;
     215
     216    $self->{'keepold'} = $keepold;
     217}
     218
    212219sub get_arguments
    213220{
Note: See TracChangeset for help on using the changeset viewer.