Revision 4707
Added by daigle about 16 years ago
src/edu/ucsb/nceas/metacat/admin/SkinsAdmin.java | ||
---|---|---|
209 | 209 |
// configure form and preserve their entries. |
210 | 210 |
validationErrors.addAll(validateOptions(request, skinName)); |
211 | 211 |
|
212 |
// Try to create backup directories if necessary. |
|
213 |
String backupDir = PropertyService.getBackupDir(); |
|
214 |
try { |
|
215 |
FileUtil.createDirectory(backupDir); |
|
216 |
} catch (IOException ioe) { |
|
217 |
String errorString = "Could not create directory: " + backupDir + |
|
218 |
" : " + ioe.getMessage(); |
|
219 |
logMetacat.error(errorString); |
|
220 |
validationErrors.add(errorString); |
|
221 |
} |
|
212 |
// // Try to create backup directories if necessary.
|
|
213 |
// String backupDir = PropertyService.getBackupDir();
|
|
214 |
// try {
|
|
215 |
// FileUtil.createDirectory(backupDir);
|
|
216 |
// } catch (IOException ioe) {
|
|
217 |
// String errorString = "Could not create directory: " + backupDir +
|
|
218 |
// " : " + ioe.getMessage();
|
|
219 |
// logMetacat.error(errorString);
|
|
220 |
// validationErrors.add(errorString);
|
|
221 |
// }
|
|
222 | 222 |
|
223 | 223 |
// write the backup properties to a location outside the |
224 | 224 |
// application directories so they will be available after |
225 | 225 |
// the next upgrade |
226 |
SkinPropertyService.persistBackupProperties(skinName, |
|
227 |
request.getSession().getServletContext()); |
|
226 |
SkinPropertyService.persistBackupProperties(skinName); |
|
228 | 227 |
} |
229 | 228 |
|
230 | 229 |
// Now that the options have been set, change the |
Also available in: Unified diff
Do not worry about creating backup directories here