1.1 --- a/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Launcher.java Tue Jan 22 19:16:38 2013 +0100
1.2 +++ b/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Launcher.java Wed Jan 30 18:27:57 2013 +0100
1.3 @@ -18,6 +18,7 @@
1.4 package org.apidesign.bck2brwsr.launcher;
1.5
1.6 import java.io.Closeable;
1.7 +import java.io.File;
1.8 import java.io.IOException;
1.9 import java.net.URLClassLoader;
1.10 import org.apidesign.vm4brwsr.Bck2Brwsr;
1.11 @@ -60,4 +61,10 @@
1.12 l.showURL(startpage);
1.13 return l;
1.14 }
1.15 + public static Closeable showDir(File directory, String startpage) throws IOException {
1.16 + Bck2BrwsrLauncher l = new Bck2BrwsrLauncher(null);
1.17 + l.showDirectory(directory, startpage);
1.18 + return l;
1.19 + }
1.20 +
1.21 }