Changeset 13390
- Timestamp:
- 2006-12-01T11:24:14+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/remote/ZipCollectionArchives.java
r13328 r13390 50 50 public boolean shouldIncludeFile(String relative_file_path) 51 51 { 52 // Only doc.xml files are included 53 return (relative_file_path.equals("doc.xml") || relative_file_path.endsWith(File.separator + "doc.xml")); 52 // Only doc.xml files are strictly required, but we include archives.inf as well to prevent 53 // errors when zipping up the archives of a collection where no files were imported 54 // (in this case the zip file would contain nothing at all) 55 return (relative_file_path.equals("archives.inf") || relative_file_path.endsWith(File.separator + "archives.inf") || relative_file_path.equals("doc.xml") || relative_file_path.endsWith(File.separator + "doc.xml")); 54 56 } 55 57
Note:
See TracChangeset
for help on using the changeset viewer.