1.1 --- a/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/BrwsrMojo.java Mon Sep 09 06:08:00 2013 +0200
1.2 +++ b/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/BrwsrMojo.java Sat Oct 12 09:05:08 2013 +0200
1.3 @@ -70,12 +70,18 @@
1.4 /** Root of all pages, and files, etc. */
1.5 @Parameter
1.6 private File directory;
1.7 +
1.8 + @Parameter(defaultValue="${project.build.directory}/bck2brwsr.js")
1.9 + private File javascript;
1.10
1.11 @Override
1.12 public void execute() throws MojoExecutionException {
1.13 if (startpage == null) {
1.14 throw new MojoExecutionException("You have to provide a start page");
1.15 }
1.16 + if (javascript != null && javascript.isFile()) {
1.17 + System.setProperty("bck2brwsr.js", javascript.toURI().toString());
1.18 + }
1.19 try {
1.20 Closeable httpServer;
1.21 if (directory != null) {