No need to specify rootdir, the post 0.8 version of html4j will derive the location from location of a resource in a JAR since: 41b0cfec61b1 ibrwsr
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 18 May 2014 11:36:11 +0200
branchibrwsr
changeset 1406dfda3dedf1a
parent 139 8b25bb6ffc2a
child 147 69ff76aa9280
No need to specify rootdir, the post 0.8 version of html4j will derive the location from location of a resource in a JAR since: 41b0cfec61b1
minesweeper/src/main/java/org/apidesign/demo/minesweeper/Main.java
     1.1 --- a/minesweeper/src/main/java/org/apidesign/demo/minesweeper/Main.java	Mon May 05 22:38:01 2014 +0200
     1.2 +++ b/minesweeper/src/main/java/org/apidesign/demo/minesweeper/Main.java	Sun May 18 11:36:11 2014 +0200
     1.3 @@ -41,12 +41,7 @@
     1.4      }
     1.5  
     1.6      /** Launches the browser */
     1.7 -    public static void main(String... args) throws Exception {
     1.8 -        File h = new File(System.getProperty("user.home"));
     1.9 -        File m = new File(h, "MineSweeper.app");
    1.10 -        System.err.println("mwd : " + m.getPath());
    1.11 -        System.setProperty("browser.rootdir", m.getPath());
    1.12 -        
    1.13 +    public static void main(String... args) throws Exception {        
    1.14          BrowserBuilder.newBrowser().
    1.15              loadPage("pages/index.html").
    1.16              loadClass(MinesModel.class).