Changeset 19668 for gli/branches/glicolgroup/src/org/greenstone/gatherer/collection/CollectionManager.java
- Timestamp:
- 2009-05-29T12:37:08+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/branches/glicolgroup/src/org/greenstone/gatherer/collection/CollectionManager.java
r19430 r19668 398 398 // Remove the lock file on the server 399 399 if (Gatherer.isGsdlRemote) { 400 Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.get Name(), lock_file);400 Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.getGroupQualifiedName(true), lock_file); 401 401 } 402 402 … … 572 572 573 573 // for remote case, scheduling causes an Exception on creating a new collection that 574 // can't be recovered from. For GS3, it doesn't work since it i ttrying to access etc/main.cfg574 // can't be recovered from. For GS3, it doesn't work since it is trying to access etc/main.cfg 575 575 if (canDoScheduling()) { 576 576 scheduling(); … … 583 583 // Import default metadata sets, if any 584 584 // for (int i = 0; metadata_sets != null && i < metadata_sets.size(); i++) { 585 // importMetadataSet((MetadataSe t) metadata_sets.get(i));585 // importMetadataSet((MetadataSecollection_namet) metadata_sets.get(i)); 586 586 // } 587 587 … … 1106 1106 // If we're using a remote Greenstone server, upload the metadata file 1107 1107 if (Gatherer.isGsdlRemote) { 1108 Gatherer.remoteGreenstoneServer.uploadCollectionFile(collection.get Name(), metadata_set_file);1108 Gatherer.remoteGreenstoneServer.uploadCollectionFile(collection.getGroupQualifiedName(true), metadata_set_file); 1109 1109 } 1110 1110 } … … 1169 1169 { 1170 1170 DebugStream.println("Loading collection " + location + "..."); 1171 System.err.println("*** Loading collection " + location + "..."); 1171 1172 1172 1173 if (Gatherer.isGsdlRemote) { 1173 String collection_name = location.substring(location.lastIndexOf(File.separator) + 1, location.length() - ".col".length()); 1174 //String collection_name = location.substring(location.lastIndexOf(File.separator) + 1, location.length() - ".col".length()); 1175 String collection_name = location.substring(0, location.lastIndexOf(File.separator)); 1176 collection_name = Gatherer.remoteGreenstoneServer.getPathRelativeToDirectory(new File(collection_name), getDefaultCollectDirectory()); 1174 1177 if (Gatherer.remoteGreenstoneServer.downloadCollection(collection_name).equals("")) { 1175 1178 return; … … 1670 1673 // If we're using a remote Greenstone server, delete the metadata file on the server 1671 1674 if (Gatherer.isGsdlRemote) { 1672 Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.get Name(), metadata_set_file);1675 Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.getGroupQualifiedName(true), metadata_set_file); 1673 1676 } 1674 1677 } … … 1806 1809 if (Gatherer.isGsdlRemote) { 1807 1810 Gatherer.remoteGreenstoneServer.deleteCollectionFile( 1808 collection.get Name(), new File(getLoadedCollectionIndexDirectoryPath()));1809 Gatherer.remoteGreenstoneServer.moveCollectionFile(collection.get Name(),1811 collection.getGroupQualifiedName(true), new File(getLoadedCollectionIndexDirectoryPath())); 1812 Gatherer.remoteGreenstoneServer.moveCollectionFile(collection.getGroupQualifiedName(true), 1810 1813 new File(getLoadedCollectionBuildingDirectoryPath()), new File(getLoadedCollectionIndexDirectoryPath())); 1811 1814 }
Note:
See TracChangeset
for help on using the changeset viewer.