Changeset 34115
- Timestamp:
- 2020-05-19T15:03:21+12:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java
r32706 r34115 1183 1183 // Close the current collection, remove the lock on this file, ask to login to the new site, then download collection configurations of the site. 1184 1184 if (Gatherer.c_man.getCollection()!=null){ 1185 File lock_file = new File(Gatherer.c_man.getLoadedCollectionDirectoryPath() + "gli.lck"); 1186 Gatherer.remoteGreenstoneServer.deleteCollectionFile(Gatherer.c_man.getLoadedCollectionName(),lock_file); 1185 // why doing this lock file by hand? closeCurrentCollection also deletes the lock file on the server. 1186 //File lock_file = new File(Gatherer.c_man.getLoadedCollectionDirectoryPath() + "gli.lck"); 1187 //Gatherer.remoteGreenstoneServer.deleteCollectionFile(Gatherer.c_man.getLoadedCollectionName(),lock_file); 1187 1188 Gatherer.g_man.closeCurrentCollection(); 1188 1189 } 1189 1190 Configuration.site_name=site; 1190 Gatherer.remoteGreenstoneServer.set_remote_greenstone_server_authentication_to_null(); 1191 // kjdon - commented this out as we only have one set of 1192 // users for entire gs install. And this will cause an authentication popup from inside PReferences which cannot display as its waiting for 1193 // prefs to finish before running itself. 1194 //Gatherer.remoteGreenstoneServer.set_remote_greenstone_server_authentication_to_null(); 1195 System.err.println("download colls"); 1191 1196 Gatherer.remoteGreenstoneServer.downloadCollectionConfigurations(); 1192 1197 }
Note:
See TracChangeset
for help on using the changeset viewer.