Changeset 1211:e746525ae0b5
- Timestamp:
- 06/12/10 23:09:16 (3 years ago)
- Author:
- Thomas Gambet <tgambet@…>
- Branch:
- default
- Message:
-
fixed: guess unicorn.home to unicorn root directory and not WEB-INF
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1206
|
r1211
|
|
| 132 | 132 | URL classesDir = Framework.class.getResource("/"); |
| 133 | 133 | File classes = new File(classesDir.toURI()); |
| 134 | | System.setProperty("unicorn.home", classes.getParent()); |
| | 134 | File webInf = new File(classes.getParent()); |
| | 135 | System.setProperty("unicorn.home", webInf.getParent()); |
| 135 | 136 | } catch (URISyntaxException e) { |
| 136 | 137 | throw new InitializationFailedException(e.getMessage(), e); |