Changeset 9001


Ignore:
Timestamp:
2005-02-10T16:42:37+13:00 (19 years ago)
Author:
kjdon
Message:

use index_stem instead of assuming 'index' when creating paths for mg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGRetrieve.java

    r8959 r9001  
    4242    private String mg_textdir = null;
    4343    private String default_index = null;
    44    
    4544    public GS3MGRetrieve() {
    4645    this.mg_src = new MGWrapper();
     
    5049    public boolean configure(Element info, Element extra_info)
    5150    {
     51    // Do generic configuration
     52    if (!super.configure(info, extra_info)) {
     53        return false;
     54    }
     55
    5256    // Do specific configuration
    5357    System.out.println("Configuring GS3MGRetrieve...");
     
    6468        return false;
    6569    }
     70
    6671    // System.out.println("Default index: " + this.default_index);
    6772
     73   
    6874    // The location of the MG index and text files
    6975    mg_basedir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) + File.separatorChar;  // Needed by MG
    70     mg_textdir = GSFile.collectionTextPath("index");
     76    mg_textdir = GSFile.collectionTextPath(this.index_stem);
    7177    // index is only needed to start up MG, not used so just use the default index
    72     String indexpath = GSFile.collectionIndexPath("index", this.default_index);
     78    String indexpath = GSFile.collectionIndexPath(this.index_stem, this.default_index);
    7379    this.mg_src.setIndex(indexpath);
    74 
    75     // Do generic configuration
    76     return super.configure(info, extra_info);
     80    return true;
    7781    }
    7882   
Note: See TracChangeset for help on using the changeset viewer.