Changeset 33969
- Timestamp:
- 2020-02-25T13:39:10+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/OAIXML.java
r32941 r33969 217 217 * the oai_version and baseURL variables are also set in here. 218 218 * The init() method is also called in here. */ 219 public static Element getOAIConfigXML( ) {219 public static Element getOAIConfigXML(String servlet_url_name) { 220 220 221 221 File oai_config_file = null; 222 222 223 String config_filename = servlet_url_name+"-OAIConfig.xml"; 223 224 try { 224 URL oai_config_url = Class.forName("org.greenstone.gsdl3.OAIServer").getClassLoader().getResource( "OAIConfig.xml");225 URL oai_config_url = Class.forName("org.greenstone.gsdl3.OAIServer").getClassLoader().getResource(config_filename); 225 226 if (oai_config_url == null) { 226 logger.error("couldn't find OAIConfig.xmlvia class loader");227 logger.error("couldn't find "+config_filename+" via class loader"); 227 228 return null; 228 229 } … … 233 234 } 234 235 } catch(Exception e) { 235 logger.error("couldn't find OAIConfig.xml"+e.getMessage());236 logger.error("couldn't find "+config_filename+" "+e.getMessage()); 236 237 return null; 237 238 }
Note:
See TracChangeset
for help on using the changeset viewer.