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/GS3MGRetrieve.java

    r9001 r9874  
    2121// Greenstone classes
    2222import org.greenstone.mg.*;
     23import org.greenstone.gsdl3.core.GSException;
    2324import org.greenstone.gsdl3.util.GSFile;
    2425import org.greenstone.gsdl3.util.GSXML;
     
    4243    private String mg_textdir = null;
    4344    private String default_index = null;
     45   
    4446    public GS3MGRetrieve() {
    4547    this.mg_src = new MGWrapper();
     48    }
     49
     50    public void cleanUp() {
     51    super.cleanUp();
     52    this.mg_src.unloadIndexData();
    4653    }
    4754
     
    8693     * <nodeContent>text content or other elements</nodeContent>
    8794     */
    88     protected Element getNodeContent(String doc_id) {
     95    protected Element getNodeContent(String doc_id) throws GSException {
    8996
    9097    if (GS3OID.isDocTop(doc_id) && database.isHierarchicalDocument(doc_id)) {
     
    111118    } catch (Exception e) {
    112119        System.out.println("exception happended with mg_src.getDocument()");
    113         doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n";
     120        throw new GSException("Couldn't get document content for id: "+ doc_int+"\n"+e.getMessage());
     121        //doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n";
    114122    }
    115123   
Note: See TracChangeset for help on using the changeset viewer.