Changeset 19898


Ignore:
Timestamp:
2009-06-24T14:16:37+12:00 (15 years ago)
Author:
kjdon
Message:

modified slightly so it can read in buildConfig.xml. added buildType to stringexp as we need buildtype metadata from buildConfig when deciding whether indexer has changed in incremental build. This is all I need buildConfig for at this time, so haven't checked that all elements are there. Will probably need more work if want access to all elements.

File:
1 edited

Legend:

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

    r17895 r19898  
    8383           "searchType" => "searchtype",
    8484           "languageMetadata" => "languagemetadata",
     85           "buildType" => "buildtype"
    8586           };
    8687# A hash structure which is returned by sub read_cfg_file.
     
    9293# creator, public, maintainer and within a displayItem.
    9394my $currentLocation = "";
    94 my $stringexp = q/^(creator|maintainer|public)$/;
     95my $stringexp = q/^(creator|maintainer|public|buildType)$/;
    9596my $displayItemNames = q/^(name|description)$/;
    9697 
     
    415416    my ($filename) = @_;
    416417    $data = {};
    417     if ($filename !~ /collectionConfig\.xml$/ || !-f $filename) {
     418    if (($filename !~ /collectionConfig\.xml$/ && $filename !~ /buildConfig\.xml$/) || !-f $filename) {
    418419        return undef;
    419420    }
Note: See TracChangeset for help on using the changeset viewer.