- Timestamp:
- 2007-01-19T16:03:51+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/metadata/MetadataXMLFileManager.java
r13586 r13705 353 353 354 354 355 /** Ensures that all the metadata is written to metadata.xml files. */ 356 static public void saveMetadataXMLFiles() 357 { 358 // If the collection is stored on a remote server, upload all the modified files now 359 if (Gatherer.isGsdlRemote) { 360 if (modified_metadata_xml_files.isEmpty()) { 361 DebugStream.println("No modified metadata.xml files to upload."); 362 return; 363 } 364 365 // Upload the files modified since last time, then reset the list 366 RemoteGreenstoneServer.uploadCollectionFiles(CollectionManager.getLoadedCollectionName(), (File[]) modified_metadata_xml_files.toArray(new File[0])); 367 modified_metadata_xml_files.clear(); 368 } 369 } 370 371 355 372 static public void unloadMetadataXMLFile(File metadata_xml_file_file) 356 373 { … … 366 383 } 367 384 } 368 369 370 static public void uploadModifiedMetadataXMLFiles()371 {372 // This is only necessary when the collection is stored on a remote server373 if (Gatherer.isGsdlRemote) {374 if (modified_metadata_xml_files.isEmpty()) {375 DebugStream.println("No modified metadata.xml files to upload.");376 return;377 }378 379 // Upload the files modified since last time, then reset the list380 RemoteGreenstoneServer.uploadCollectionFiles(CollectionManager.getLoadedCollectionName(), (File[]) modified_metadata_xml_files.toArray(new File[0]));381 modified_metadata_xml_files.clear();382 }383 }384 385 }
Note:
See TracChangeset
for help on using the changeset viewer.