Project

General

Profile

« Previous | Next » 

Revision 4428

Added by daigle over 15 years ago

Create document and temporary directories during configuration.

View differences:

PropertiesAdmin.java
200 200
					logMetacat.error(errorString);
201 201
					validationErrors.add(errorString);
202 202
				}
203
				
204
				// Try to create document directories if necessary.
205
				String documentfilepath = PropertyService.getProperty("application.documentfilepath");
206
				if (!FileUtil.createDirectory(documentfilepath)) {
207
					String errorString = "Could not create directory: " + documentfilepath;
208
					logMetacat.error(errorString);
209
					validationErrors.add(errorString);
210
				}
211
				
212
				// Try to create temporary directories if necessary.
213
				String tempDir = PropertyService.getProperty("application.tempDir");
214
				if (!FileUtil.createDirectory(tempDir)) {
215
					String errorString = "Could not create directory: " + tempDir;
216
					logMetacat.error(errorString);
217
					validationErrors.add(errorString);
218
				}
203 219

  
204 220
				// write the backup properties to a location outside the 
205 221
				// application directories so they will be available after

Also available in: Unified diff