- Timestamp:
- 2012-09-27T13:57:02+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/CollectionClassLoader.java
r26255 r26264 38 38 this.base_dir = GSFile.collectionResourceDir(site_home, collection_name); 39 39 } 40 41 public URL findResource(String name) 40 41 // Resource Bundle loading with a class loader will call getResource(). 42 // THe Java implementation of getResource tries using the parent class 43 // loader to find the resource (or the system class loader if no parent). 44 // If the resource not found, then it calls the local findResource method. 45 // Ie parent:child ordering. 46 // Because we want local files to override default ones, we need 47 // child:parent ordering, so change getResource to look locally first. 48 //public URL findResource(String name) 49 public URL getResource(String name) 42 50 { 43 51 File resource_path = new File(this.base_dir, name); … … 53 61 } 54 62 55 return super. findResource(name);63 return super.getResource(name); 56 64 } 57 65 }
Note:
See TracChangeset
for help on using the changeset viewer.