Revision 4950
Added by daigle almost 15 years ago
BackupAdmin.java | ||
---|---|---|
38 | 38 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
39 | 39 |
import edu.ucsb.nceas.metacat.service.ServiceException; |
40 | 40 |
import edu.ucsb.nceas.metacat.service.ServiceService; |
41 |
import edu.ucsb.nceas.metacat.util.MetacatUtilException; |
|
41 | 42 |
import edu.ucsb.nceas.metacat.util.RequestUtil; |
42 | 43 |
import edu.ucsb.nceas.metacat.util.SystemUtil; |
43 | 44 |
import edu.ucsb.nceas.utilities.FileUtil; |
... | ... | |
119 | 120 |
} catch (ServletException se) { |
120 | 121 |
throw new AdminException("Problem forwarding request while " |
121 | 122 |
+ "initializing backup configuration page: " + se.getMessage()); |
122 |
} catch (UtilException ue) {
|
|
123 |
} catch (MetacatUtilException mue) {
|
|
123 | 124 |
throw new AdminException("Problem discovering backup directory while " |
124 |
+ "initializing backup configuration page: " + ue.getMessage()); |
|
125 |
+ "initializing backup configuration page: " + mue.getMessage());
|
|
125 | 126 |
} |
126 | 127 |
} else { |
127 | 128 |
// The configuration form is being submitted and needs to be |
... | ... | |
151 | 152 |
|
152 | 153 |
ServiceService.refreshService("SkinPropertyService"); |
153 | 154 |
SystemUtil.storeExternalDirLocation(backupDir); |
154 |
} catch (IOException ue) {
|
|
155 |
} catch (UtilException ue) {
|
|
155 | 156 |
String errorMessage = "Could not create directory: " + hiddenBackupDir |
156 | 157 |
+ " : " + ue.getMessage() + ". Please try again"; |
157 | 158 |
processingErrors.add(errorMessage); |
Also available in: Unified diff
Add archival read funtionality (jar/kar/war files)