Ignore:
Timestamp:
2005-05-16T11:02:50+12:00 (19 years ago)
Author:
kjdon
Message:

merged from branch ant-install-branch: merge 1

File:
1 edited

Legend:

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

    r8959 r9874  
    2121// Greenstone classes
    2222import org.greenstone.mgpp.*;
     23import org.greenstone.gsdl3.core.GSException;
    2324import org.greenstone.gsdl3.util.GSFile;
    2425import org.greenstone.gsdl3.util.GSXML;
     
    4748    }
    4849
     50    public void cleanUp() {
     51    super.cleanUp();
     52    this.mgpp_src.unloadIndexData();
     53    }
     54
    4955    /** configure this service */
    5056    public boolean configure(Element info, Element extra_info)
    5157    {
     58    // Do generic configuration
     59    if (!super.configure(info, extra_info)) {
     60        return false;
     61    }
     62
    5263    // Do specific configuration
    5364    System.out.println("Configuring GS3MGPPRetrieve...");
     
    6677    // The location of the MGPP text files
    6778    mgpp_textdir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) +
    68         File.separatorChar + GSFile.collectionTextPath(this.cluster_name);
     79        File.separatorChar + GSFile.collectionTextPath(this.index_stem);
    6980
    70     // Do generic configuration
    71     return super.configure(info, extra_info);
    72  
     81    return true;
    7382    }
    7483   
     
    7786     * <nodeContent>text content or other elements</nodeContent>
    7887     */
    79     protected Element getNodeContent(String doc_id) {
     88    protected Element getNodeContent(String doc_id) throws GSException {
    8089    if (GS3OID.isDocTop(doc_id) && database.isHierarchicalDocument(doc_id)) {
    8190        // if we have a whole doc id, and the document is hierarchical,
Note: See TracChangeset for help on using the changeset viewer.