Changeset 14384

Show
Ignore:
Timestamp:
23.08.2007 08:57:59 (12 years ago)
Author:
xiao
Message:

a new added ->{'collect_cfg_preserve'} is used for gs3 only and to be passed to &colcfg::write_build_cfg_xml in sub make_auxilary_files later in this basebuilder.pm, we use this preserve object because ->{'collect_cfg'}->{'classify'} somewhat gets modified during the calling of &classify::load_classifiers.

Files:
1 modified

Legend:

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

    r14374 r14384  
    9494    } elsif ($gs_mode eq "gs3") { 
    9595    $self->{'collect_cfg'} = &colcfg::read_collection_cfg_xml ($colcfgname); 
     96 
     97    #this $self->{'collect_cfg_preserve'} is used for gs3 only and to be passed to &colcfg::write_build_cfg_xml in sub make_auxilary_files later in this basebuilder.pm, we use this preserve object because $self->{'collect_cfg'}->{'classify'} somewhat gets modified during the calling of &classify::load_classifiers. 
     98    $self->{'collect_cfg_preserve'} = &colcfg::read_collection_cfg_xml ($colcfgname); 
    9699    } 
    97100     
     
    121124    $classifiers = $self->{'collect_cfg'}->{'classify'}; 
    122125    } 
    123      
     126 
    124127    # load all the classifiers 
    125128    $self->{'classifiers'} = &classify::load_classifiers ($classifiers, $build_dir, $outhandle); 
     
    470473    } 
    471474    if ($gs_mode eq "gs3") { 
    472       &colcfg::write_build_cfg_xml("$self->{'build_dir'}/buildConfig.xml", $build_cfg, $self->{'collect_cfg'}, $self->{'disable_OAI'}); 
     475 
     476      &colcfg::write_build_cfg_xml("$self->{'build_dir'}/buildConfig.xml", $build_cfg, $self->{'collect_cfg_preserve'}, $self->{'disable_OAI'}); 
    473477    }     
    474478