Project

General

Profile

« Previous | Next » 

Revision 4950

Added by daigle almost 15 years ago

Add archival read funtionality (jar/kar/war files)

View differences:

PropertiesAdmin.java
47 47
import edu.ucsb.nceas.utilities.GeneralPropertyException;
48 48
import edu.ucsb.nceas.utilities.PropertiesMetaData;
49 49
import edu.ucsb.nceas.utilities.SortedProperties;
50
import edu.ucsb.nceas.utilities.UtilException;
50 51

  
51 52
/**
52 53
 * Control the display of the main properties configuration page and the 
......
203 204
				String dataDir = PropertyService.getProperty("application.datafilepath");
204 205
				try {
205 206
					FileUtil.createDirectory(dataDir);
206
				} catch (IOException ioe) {
207
				} catch (UtilException ue) {
207 208
					String errorString = "Could not create directory: " + dataDir +
208
						" : " + ioe.getMessage();
209
					" : " + ue.getMessage();
209 210
					logMetacat.error(errorString);
210 211
					validationErrors.add(errorString);
211 212
				}
......
214 215
				String inlineDataDir = PropertyService.getProperty("application.inlinedatafilepath");
215 216
				try {
216 217
					FileUtil.createDirectory(inlineDataDir);
217
				} catch (IOException ioe) {
218
				} catch (UtilException ue) {
218 219
					String errorString = "Could not create directory: " + inlineDataDir +
219
						" : " + ioe.getMessage();
220
						" : " + ue.getMessage();
220 221
					logMetacat.error(errorString);
221 222
					validationErrors.add(errorString);
222 223
				}
......
225 226
				String documentfilepath = PropertyService.getProperty("application.documentfilepath");
226 227
				try {
227 228
					FileUtil.createDirectory(documentfilepath);
228
				} catch (IOException ioe) {	
229
				} catch (UtilException ue) {	
229 230
					String errorString = "Could not create directory: " + documentfilepath +
230
						" : " + ioe.getMessage();
231
						" : " + ue.getMessage();
231 232
					logMetacat.error(errorString);
232 233
					validationErrors.add(errorString);
233 234
				}
......
236 237
				String tempDir = PropertyService.getProperty("application.tempDir");
237 238
				try {
238 239
					FileUtil.createDirectory(tempDir);
239
				} catch (IOException ioe) {		
240
				} catch (UtilException ue) {		
240 241
					String errorString = "Could not create directory: " + tempDir +
241
						" : " + ioe.getMessage();
242
						" : " + ue.getMessage();
242 243
					logMetacat.error(errorString);
243 244
					validationErrors.add(errorString);
244 245
				}
......
247 248
				String replLogDir = PropertyService.getProperty("replication.logdir");
248 249
				try {
249 250
					FileUtil.createDirectory(replLogDir);
250
				} catch (IOException ioe) {		
251
				} catch (UtilException ue) {		
251 252
					String errorString = "Could not create directory: " + replLogDir +
252
						" : " + ioe.getMessage();
253
						" : " + ue.getMessage();
253 254
					logMetacat.error(errorString);
254 255
					validationErrors.add(errorString);
255 256
				}

Also available in: Unified diff