Renaming the extension parameter to library to keep with the API of Bck2Brwsr compiler closure
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 29 Apr 2014 14:27:36 +0200
branchclosure
changeset 1503e0f2f3503eed
parent 1502 fab4a72543ab
child 1504 d058edd87424
Renaming the extension parameter to library to keep with the API of Bck2Brwsr compiler
rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/Java2JavaScript.java
     1.1 --- a/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/Java2JavaScript.java	Tue Apr 29 13:28:41 2014 +0200
     1.2 +++ b/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/Java2JavaScript.java	Tue Apr 29 14:27:36 2014 +0200
     1.3 @@ -68,13 +68,13 @@
     1.4      private ObfuscationLevel obfuscation;
     1.5  
     1.6      /**
     1.7 -     * Indicates whether to create an extension module instead of a standalone
     1.8 -     * JavaScript VM.
     1.9 +     * Indicates whether to create an extension library 
    1.10 +     * module instead of a standalone JavaScript VM.
    1.11       *
    1.12 -     * @since 0.6
    1.13 +     * @since 0.9
    1.14       */
    1.15      @Parameter(defaultValue="false")
    1.16 -    private boolean extension;
    1.17 +    private boolean library;
    1.18  
    1.19      @Override
    1.20      public void execute() throws MojoExecutionException {
    1.21 @@ -99,7 +99,7 @@
    1.22              FileWriter w = new FileWriter(javascript);
    1.23              Bck2Brwsr.newCompiler().
    1.24                  obfuscation(obfuscation).
    1.25 -                extension(extension).
    1.26 +                library(library).
    1.27                  resources(url).
    1.28                  addRootClasses(arr.toArray(new String[0])).
    1.29                  generate(w);