- Timestamp:
- 2003-06-12T12:07:19+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionTask.java
r4571 r4595 133 133 backup.deleteOnExit(); 134 134 if(!file.renameTo(backup)) { 135 Gatherer.println("Error in CollectionManager.load(): File NotRenamedException");135 Gatherer.println("Error in CollectionManager.load(): FileRenamedException"); 136 136 } 137 137 } … … 156 156 // Now we check whether we've finished, or is this a Save As action, in which case we've got miles to go. 157 157 if(name != null) { 158 159 158 // 2. Call CollectionManager.makeCollection() to create the collection structure to save into (copied collection). 159 ///ystem.err.println("2. Make copy."); 160 160 Gatherer.c_man.createCollection(null, null, name, null, null, null); 161 161 // spd.setProgress(getValue(MAKE_COLLECTION)); 162 163 164 162 // 3. Copy files from the origin to the copied collections (except special collection files ending with ~). 163 // As part of this we must rename origin.col to copy.col 164 ///ystem.err.println("3. Copy origin."); 165 165 ArrayList files = new ArrayList(); 166 166 File collection_file = new File(Gatherer.c_man.getCollectionFilename());
Note:
See TracChangeset
for help on using the changeset viewer.