Changeset 8248
- Timestamp:
- 2004-10-08T14:17:01+13:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/GreenstoneArchiveParser.java
r8243 r8248 158 158 file_path = MSMUtils.getValue(metadata_element); 159 159 if (!file_path.startsWith(File.separator)) { 160 String collection_dir = Utility.getCollectionDir();160 String collection_dir = Gatherer.c_man.getCollectionDirectory(); 161 161 file_path = collection_dir + file_path; 162 162 } -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataXMLFileManager.java
r8243 r8248 360 360 if ((Utility.isWindows() == true && filename.charAt(1) != ':') || 361 361 (Utility.isWindows() == false && !filename.startsWith(File.separator))) { 362 String collection_dir = Utility.getCollectionDir();362 String collection_dir = Gatherer.c_man.getCollectionDirectory(); 363 363 File full_file = new File(collection_dir + filename); 364 364 file = full_file; -
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r8243 r8248 493 493 } 494 494 495 public static String getCollectionDir() {496 String this_col_dir;497 498 String col_name = Gatherer.c_man.getCollection().getName();499 500 if (Gatherer.GS3) {501 this_col_dir = getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, col_name);502 } else {503 this_col_dir = getCollectionDir(Configuration.gsdl_path, col_name);504 505 }506 507 return this_col_dir;508 }509 510 495 511 496 /** Method which constructs the configuration file given a certain collection.
Note:
See TracChangeset
for help on using the changeset viewer.