Changeset 29753
- Timestamp:
- 2015-02-19T16:46:29+13:00 (9 years ago)
- Location:
- main/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/util/GLIEntityResolver.java
r29730 r29753 149 149 150 150 if(searchFile.exists()) { 151 DebugStream.println("\t Found " + searchFile.getAbsolutePath()); 152 return new InputSource("file://" + searchFile.getAbsolutePath()); 151 DebugStream.println("\t Found " + searchFile.getAbsolutePath()); 152 153 String newpath = searchFile.getAbsolutePath(); 154 if(Utility.isWindows()) { 155 newpath = "file:///" + newpath.replace("\\", "/"); 156 } else { // linux version, file protocol starts with file:// and slashes are already URL-style 157 newpath = "file://" + newpath; 158 } 159 return new InputSource(newpath); 160 153 161 } 154 162 } -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSEntityResolver.java
r29752 r29753 77 77 String newpath = this.baseFilepath + File.separator + temp_id; 78 78 if(Misc.isWindows()) { 79 newpath = "file:///" + newpath.replace("\\", "/"); 80 System.err.println("### entity resolver for "+"file:///" + newpath); 79 newpath = "file:///" + newpath.replace("\\", "/"); 81 80 } else { // linux version, file protocol starts with file:// and slashes are already URL-style 82 81 newpath = "file://" + newpath;
Note:
See TracChangeset
for help on using the changeset viewer.