- Timestamp:
- 2007-01-12T14:05:00+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileManager.java
r13455 r13586 41 41 import org.greenstone.gatherer.Dictionary; 42 42 import org.greenstone.gatherer.Gatherer; 43 import org.greenstone.gatherer.collection.CollectionManager; 43 44 import org.greenstone.gatherer.collection.CollectionTree; 44 45 import org.greenstone.gatherer.collection.CollectionTreeNode; … … 169 170 file_queue.addJob(id, source, source_nodes, target, target_node, type); 170 171 if (Gatherer.isGsdlRemote) { 171 String collection_name = Gatherer.c_man.getCollection().getName();172 String collection_name = CollectionManager.getLoadedCollectionName(); 172 173 173 174 // Perform the appropriate action based on the job type (RemoteGreenstoneServer will queue) … … 248 249 // ... but only if it is inside the collection and we haven't already downloaded it 249 250 if (file.getAbsolutePath().startsWith(Gatherer.getCollectDirectoryPath()) && file.length() == 0) { 250 if (RemoteGreenstoneServer.downloadCollectionFile( Gatherer.c_man.getCollection().getName(), file).equals("")) {251 if (RemoteGreenstoneServer.downloadCollectionFile(CollectionManager.getLoadedCollectionName(), file).equals("")) { 251 252 // Something has gone wrong downloading the file 252 253 return; … … 323 324 folder_file.createNewFile(); 324 325 if (Gatherer.isGsdlRemote) { 325 RemoteGreenstoneServer.uploadCollectionFile( Gatherer.c_man.getCollection().getName(), folder_file);326 RemoteGreenstoneServer.uploadCollectionFile(CollectionManager.getLoadedCollectionName(), folder_file); 326 327 } 327 328 } … … 329 330 folder_file.mkdirs(); 330 331 if (Gatherer.isGsdlRemote) { 331 RemoteGreenstoneServer.newCollectionDirectory( Gatherer.c_man.getCollection().getName(), folder_file);332 RemoteGreenstoneServer.newCollectionDirectory(CollectionManager.getLoadedCollectionName(), folder_file); 332 333 } 333 334 }
Note:
See TracChangeset
for help on using the changeset viewer.