Changeset 1267:ec093465c1ff
- Timestamp:
- 06/17/10 16:12:55 (3 years ago)
- Author:
- Thomas Gambet <tgambet@…>
- Branch:
- default
- Message:
-
fixed: no initialization failed exception if uploaded or temporary files directories exist
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1262
|
r1267
|
|
| 166 | 166 | |
| 167 | 167 | // creating uploaded and temporary files directories |
| 168 | | if ((new File(Property.get("UPLOADED_FILES_REPOSITORY"))).mkdir()) |
| | 168 | File upload_repo = new File(Property.get("UPLOADED_FILES_REPOSITORY")); |
| | 169 | File temporary_repo = new File(Property.get("UPLOADED_FILES_REPOSITORY")); |
| | 170 | if (upload_repo.mkdir() || upload_repo.exists()) |
| 169 | 171 | logger.debug("> Created uploaded files directory: \n\t" |
| 170 | 172 | + Property.get("UPLOADED_FILES_REPOSITORY")); |
| … |
… |
|
| 172 | 174 | throw new InitializationFailedException("Unable to create uploaded files directory: \n\t" |
| 173 | 175 | + Property.get("UPLOADED_FILES_REPOSITORY")); |
| 174 | | if ((new File(Property.get("PATH_TO_TEMPORARY_FILES"))).mkdir()) |
| | 176 | if (temporary_repo.mkdir() || temporary_repo.exists()) |
| 175 | 177 | logger.debug("> Created temporary files directory: \n\t" |
| 176 | 178 | + Property.get("PATH_TO_TEMPORARY_FILES")); |
| 177 | | else |
| | 179 | else |
| 178 | 180 | throw new InitializationFailedException("Unable to create temporary files directory: \n\t" |
| 179 | 181 | + Property.get("PATH_TO_TEMPORARY_FILES")); |