Changeset 1211:e746525ae0b5

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • src/org/w3c/unicorn/Framework.java

    r1206 r1211  
    132132                        URL classesDir = Framework.class.getResource("/"); 
    133133                        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()); 
    135136                } catch (URISyntaxException e) { 
    136137                        throw new InitializationFailedException(e.getMessage(), e);