commit: fixed: guess unicorn.home to unicorn root directory and not WEB-INF

changeset:   1211:e746525ae0b5
user:        Thomas Gambet <tgambet@w3.org>
date:        Sat Jun 12 19:09:16 2010 -0400
files:       src/org/w3c/unicorn/Framework.java
description:
fixed: guess unicorn.home to unicorn root directory and not WEB-INF


diff -r b0d705d5b71f -r e746525ae0b5 src/org/w3c/unicorn/Framework.java
--- a/src/org/w3c/unicorn/Framework.java	Sat Jun 12 19:08:23 2010 -0400
+++ b/src/org/w3c/unicorn/Framework.java	Sat Jun 12 19:09:16 2010 -0400
@@ -131,7 +131,8 @@
 		try {
 			URL classesDir = Framework.class.getResource("/");
 			File classes = new File(classesDir.toURI());
-			System.setProperty("unicorn.home", classes.getParent());
+			File webInf = new File(classes.getParent());
+			System.setProperty("unicorn.home", webInf.getParent());
 		} catch (URISyntaxException e) {
 			throw new InitializationFailedException(e.getMessage(), e);
 		}

Received on Monday, 14 June 2010 13:25:11 UTC