- Timestamp:
- 2016-12-13T20:36:01+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSFile.java
r30833 r31230 372 372 return site_home + File.separatorChar + "collect" + File.separatorChar + collection_name + File.separatorChar + "index" + File.separatorChar + "text" + File.separatorChar + index_stem + db_ext; 373 373 } 374 375 /** the oai-inf database file in the collection's etc folder */ 376 static public String OAIInfoDatabaseFile(String site_home, String collection_name, String db_tailname, String database_type) 377 { 378 String db_ext = DBHelper.getDBExtFromDBType(database_type); 379 if (null == db_ext || db_ext.equals("")) { 380 logger.warn("Could not recognise database type \"" + database_type + "\", defaulting to GDBM and extension \".gdb\""); 381 // assume gdbm 382 db_ext = ".gdb"; 383 } 384 return site_home + File.separatorChar + "collect" + File.separatorChar + collection_name + File.separatorChar + "etc" + File.separatorChar + db_tailname + db_ext; // db tailname should be oai-inf 385 } 386 374 387 375 388 /** the archives database file - */
Note:
See TracChangeset
for help on using the changeset viewer.