rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/BrswrMojo.java
branchmodel
changeset 1043 bd80952bfd11
parent 772 d382dacfd73f
     1.1 --- a/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/BrswrMojo.java	Tue Feb 26 16:54:16 2013 +0100
     1.2 +++ b/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/BrswrMojo.java	Sun Apr 28 21:17:04 2013 +0200
     1.3 @@ -41,6 +41,15 @@
     1.4  public class BrswrMojo extends AbstractMojo {
     1.5      public BrswrMojo() {
     1.6      }
     1.7 +    
     1.8 +    /** The identification of a launcher to use. Known values <code>fxbrwsr</code>, 
     1.9 +     * <code>bck2brwsr</code>, or 
    1.10 +     * name of an external process to execute.
    1.11 +     */
    1.12 +    @Parameter
    1.13 +    private String launcher;
    1.14 +    
    1.15 +    
    1.16      /** Resource to show as initial page */
    1.17      @Parameter
    1.18      private String startpage;
    1.19 @@ -69,7 +78,7 @@
    1.20              } else {
    1.21                  URLClassLoader url = buildClassLoader(classes, prj.getDependencyArtifacts());
    1.22                  try {
    1.23 -                    httpServer = Launcher.showURL(url, startpage());
    1.24 +                    httpServer = Launcher.showURL(launcher, url, startpage());
    1.25                  } catch (Exception ex) {
    1.26                      throw new MojoExecutionException("Can't open " + startpage(), ex);
    1.27                  }