Changeset 8143
- Timestamp:
- 2004-09-23T16:08:51+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/metadata/DocXMLFile.java
r8142 r8143 168 168 if (is_unix_path && Utility.isWindows()) { 169 169 // Convert path from Unix to Windows 170 gsdlsourcefilename_value = gsdlsourcefilename_value.replaceAll(" /", File.separator);171 } 172 if (!is_unix_path && !Utility.isWindows()) {170 gsdlsourcefilename_value = gsdlsourcefilename_value.replaceAll("\\/", "\\\\"); 171 } 172 else if (!is_unix_path && !Utility.isWindows()) { 173 173 // Convert path from Windows to Unix 174 gsdlsourcefilename_value = gsdlsourcefilename_value.replaceAll("\\\\", File.separator);174 gsdlsourcefilename_value = gsdlsourcefilename_value.replaceAll("\\\\", "/"); 175 175 } 176 176 177 177 // Remember this for quick access later 178 if (gsdlsourcefilename_value != null) { 179 files_in_doc_xml_file.add(gsdlsourcefilename_value); 180 } 178 files_in_doc_xml_file.add(gsdlsourcefilename_value); 181 179 } 182 180 else {
Note:
See TracChangeset
for help on using the changeset viewer.