Changeset 9001
- Timestamp:
- 2005-02-10T16:42:37+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGRetrieve.java
r8959 r9001 42 42 private String mg_textdir = null; 43 43 private String default_index = null; 44 45 44 public GS3MGRetrieve() { 46 45 this.mg_src = new MGWrapper(); … … 50 49 public boolean configure(Element info, Element extra_info) 51 50 { 51 // Do generic configuration 52 if (!super.configure(info, extra_info)) { 53 return false; 54 } 55 52 56 // Do specific configuration 53 57 System.out.println("Configuring GS3MGRetrieve..."); … … 64 68 return false; 65 69 } 70 66 71 // System.out.println("Default index: " + this.default_index); 67 72 73 68 74 // The location of the MG index and text files 69 75 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); 71 77 // 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); 73 79 this.mg_src.setIndex(indexpath); 74 75 // Do generic configuration 76 return super.configure(info, extra_info); 80 return true; 77 81 } 78 82
Note:
See TracChangeset
for help on using the changeset viewer.