Changeset 18645
- Timestamp:
- 2009-03-09T19:22:54+13:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java
r18376 r18645 47 47 import org.greenstone.gatherer.collection.ScriptOptions; 48 48 import org.greenstone.gatherer.collection.Collection; 49 import org.greenstone.gatherer.feedback.Base64; 49 50 import org.greenstone.gatherer.greenstone.LocalGreenstone; 50 51 import org.greenstone.gatherer.gui.tree.DragTree; … … 282 283 metadata_file, collection_directory_path); 283 284 command_parts_list.add("-file"); 284 command_parts_list.add( metadata_file_relative_path);285 command_parts_list.add(Base64.encodeBytes(metadata_file_relative_path.getBytes())); 285 286 286 287 // When running remotely we also need the collection name as the last argument -
gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java
r18412 r18645 49 49 import org.greenstone.gatherer.collection.ScriptOptions; 50 50 import org.greenstone.gatherer.collection.Collection; 51 import org.greenstone.gatherer.feedback.Base64; 51 52 import org.greenstone.gatherer.greenstone.LocalGreenstone; 52 53 import org.greenstone.gatherer.gui.tree.DragTree; … … 283 284 String srcdoc_file_relative_path = Gatherer.remoteGreenstoneServer.getPathRelativeToDirectory( 284 285 this.srcdoc_files[fileNum], collection_directory_path); // preserves spaces in filename 286 287 // base64 encode the relative filepath, so that special characters in the filename are preserved 285 288 command_parts_list.add("-file"); 286 command_parts_list.add( srcdoc_file_relative_path);289 command_parts_list.add(Base64.encodeBytes(srcdoc_file_relative_path.getBytes())); 287 290 288 291 // When running remotely we also need the collection name as the last argument … … 396 399 // download any assoc folder which is srcfilename+"_files" 397 400 File assoc_folder = new File(srcdoc_files[i].getParentFile(), suffixlessFilename+"_files"); 401 398 402 // If an associated_folder by such a name exists, download it 399 403 if(Gatherer.remoteGreenstoneServer.exists(CollectionManager.getLoadedCollectionName(), assoc_folder)) {
Note:
See TracChangeset
for help on using the changeset viewer.