- Timestamp:
- 2008-10-24T17:45:51+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java
r17012 r17612 379 379 // Remove the lock file on the server 380 380 if (Gatherer.isGsdlRemote) { 381 RemoteGreenstoneServer.deleteCollectionFile(collection.getName(), lock_file);381 Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.getName(), lock_file); 382 382 } 383 383 … … 547 547 collection_import_directory.mkdirs(); 548 548 if (Gatherer.isGsdlRemote) { 549 RemoteGreenstoneServer.newCollectionDirectory(name, collection_import_directory);549 Gatherer.remoteGreenstoneServer.newCollectionDirectory(name, collection_import_directory); 550 550 } 551 551 } … … 581 581 if (Gatherer.isGsdlRemote) { 582 582 String base_collection_name = base_collection_directory.getName(); 583 RemoteGreenstoneServer.downloadCollection(base_collection_name);583 Gatherer.remoteGreenstoneServer.downloadCollection(base_collection_name); 584 584 } 585 585 … … 765 765 // Delete the collection on the server if we're using a remote Greenstone 766 766 if (Gatherer.isGsdlRemote) { 767 RemoteGreenstoneServer.deleteCollection(collection_name);767 Gatherer.remoteGreenstoneServer.deleteCollection(collection_name); 768 768 } 769 769 … … 1056 1056 // If we're using a remote Greenstone server, upload the metadata file 1057 1057 if (Gatherer.isGsdlRemote) { 1058 RemoteGreenstoneServer.uploadCollectionFile(collection.getName(), metadata_set_file);1058 Gatherer.remoteGreenstoneServer.uploadCollectionFile(collection.getName(), metadata_set_file); 1059 1059 } 1060 1060 } … … 1122 1122 if (Gatherer.isGsdlRemote) { 1123 1123 String collection_name = location.substring(location.lastIndexOf(File.separator) + 1, location.length() - ".col".length()); 1124 if ( RemoteGreenstoneServer.downloadCollection(collection_name).equals("")) {1124 if (Gatherer.remoteGreenstoneServer.downloadCollection(collection_name).equals("")) { 1125 1125 return; 1126 1126 } … … 1618 1618 // If we're using a remote Greenstone server, delete the metadata file on the server 1619 1619 if (Gatherer.isGsdlRemote) { 1620 RemoteGreenstoneServer.deleteCollectionFile(collection.getName(), metadata_set_file);1620 Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.getName(), metadata_set_file); 1621 1621 } 1622 1622 } … … 1750 1750 1751 1751 if (Gatherer.isGsdlRemote) { 1752 RemoteGreenstoneServer.deleteCollectionFile(collection.getName(), new File(getLoadedCollectionIndexDirectoryPath())); 1753 RemoteGreenstoneServer.moveCollectionFile(collection.getName(), new File(getLoadedCollectionBuildingDirectoryPath()), new File(getLoadedCollectionIndexDirectoryPath())); 1752 Gatherer.remoteGreenstoneServer.deleteCollectionFile( 1753 collection.getName(), new File(getLoadedCollectionIndexDirectoryPath())); 1754 Gatherer.remoteGreenstoneServer.moveCollectionFile(collection.getName(), 1755 new File(getLoadedCollectionBuildingDirectoryPath()), new File(getLoadedCollectionIndexDirectoryPath())); 1754 1756 } 1755 1757
Note:
See TracChangeset
for help on using the changeset viewer.