Changeset 13464
- Timestamp:
- 2006-12-08T12:10:46+13:00 (17 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java
r13460 r13464 45 45 import org.greenstone.gatherer.cdm.CollectionDesignManager; 46 46 import org.greenstone.gatherer.cdm.Plugin; 47 import org.greenstone.gatherer.collection.CollectionManager; 47 48 import org.greenstone.gatherer.collection.ScriptOptions; 48 49 import org.greenstone.gatherer.gui.tree.DragTree; … … 52 53 import org.greenstone.gatherer.metadata.MetadataSetManager; 53 54 import org.greenstone.gatherer.metadata.MetadataTools; 55 import org.greenstone.gatherer.remote.RemoteGreenstoneServer; 54 56 import org.greenstone.gatherer.shell.GShell; 55 57 import org.greenstone.gatherer.shell.GShellEvent; … … 261 263 } 262 264 263 // Add in the filename 264 command_parts_list.add(metadata_file.getPath()); 265 // Local case 266 if (!Gatherer.isGsdlRemote) { 267 // Add in the filename 268 command_parts_list.add(metadata_file.getPath()); 269 } 270 // Remote case 271 else { 272 // Add in the filename, relative to the collection directory 273 String collection_name = Gatherer.c_man.getCollection().getName(); 274 String collection_directory_path = CollectionManager.getCollectionDirectoryPath(collection_name); 275 String metadata_file_relative_path = RemoteGreenstoneServer.getPathRelativeToDirectory(metadata_file, collection_directory_path); 276 command_parts_list.add("-file"); 277 command_parts_list.add(metadata_file_relative_path); 278 279 // When running remotely we also need the collection name as the last argument 280 command_parts_list.add(collection_name); 281 } 265 282 266 283 // Run the explode_metadata_database.pl command -
trunk/gli/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java
r13328 r13464 1135 1135 1136 1136 1137 static p rivateString getPathRelativeToDirectory(File file, String directory_path)1137 static public String getPathRelativeToDirectory(File file, String directory_path) 1138 1138 { 1139 1139 String file_path = file.getAbsolutePath();
Note:
See TracChangeset
for help on using the changeset viewer.