- Timestamp:
- 2012-10-17T21:05:20+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r25773 r26333 108 108 /** The monitor responsible for parsing the scheduler process. */ 109 109 static private GShellProgressMonitor schedule_monitor = null; 110 ///** The monitor responsible for parsing the fedora collection delete process. */ 111 //static private GShellProgressMonitor fedora_coldelete_monitor = null; 110 112 111 113 /** The name of the standard lock file. */ … … 814 816 if (LocalLibraryServer.isRunning() == true) { 815 817 LocalLibraryServer.releaseCollection(collection_name); 818 } 819 820 // if we're running FLI, it's a fedora collection, and we need to call a special 821 // delete script to delete the collection and all its documents from the fedora 822 // repository and from fedora-gsearch's index. 823 if (Configuration.fedora_info.isActive()) { 824 825 // Generate the buildcol.pl command 826 ArrayList command_parts_list = new ArrayList(); 827 if (!Gatherer.isGsdlRemote) { 828 command_parts_list.add(Configuration.perl_path); 829 command_parts_list.add("-S"); 830 } 831 832 command_parts_list.add(scriptPath + "g2f-deletecol.pl"); 833 834 command_parts_list.add("-hostname"); 835 command_parts_list.add(Configuration.fedora_info.getHostname()); 836 837 command_parts_list.add("-port"); 838 command_parts_list.add(Configuration.fedora_info.getPort()); 839 840 command_parts_list.add("-username"); 841 command_parts_list.add(Configuration.fedora_info.getUsername()); 842 843 command_parts_list.add("-password"); 844 command_parts_list.add(Configuration.fedora_info.getPassword()); 845 846 command_parts_list.add("-protocol"); 847 command_parts_list.add(Configuration.fedora_info.getProtocol()); 848 849 command_parts_list.add("-gli"); 850 command_parts_list.add("-language"); 851 command_parts_list.add(Configuration.getLanguage()); 852 if(!Gatherer.isGsdlRemote) { 853 command_parts_list.add("-collectdir"); 854 command_parts_list.add(getCollectDirectory()); // <../collect/> 855 } 856 857 command_parts_list.add(collection_name); 858 859 // Run the g2f-deletecol.pl to remove the fedora collection 860 String[] command_parts = (String[]) command_parts_list.toArray(new String[0]); 861 GShell shell = new GShell(command_parts, GShell.DELETE, COLLECT, this, null, GShell.GSHELL_FEDORA_COLDELETE); // fedora_coldelete_monitor set to null 862 shell.start(); 816 863 } 817 864
Note:
See TracChangeset
for help on using the changeset viewer.