Can change obfuscation of the minified library - probably only meaningful to use MINIMAL instead of FULL
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 15 Apr 2015 14:32:54 +0200
changeset 18249fb23d7831da
parent 1823 999cf0169156
child 1825 e678bb6beb1f
Can change obfuscation of the minified library - probably only meaningful to use MINIMAL instead of FULL
rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/AOTLibrary.java
     1.1 --- a/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/AOTLibrary.java	Wed Apr 15 12:29:45 2015 +0200
     1.2 +++ b/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/AOTLibrary.java	Wed Apr 15 14:32:54 2015 +0200
     1.3 @@ -80,7 +80,14 @@
     1.4  
     1.5      @Parameter(defaultValue = "true")
     1.6      private boolean ignoreBootClassPath;
     1.7 -
     1.8 +    
     1.9 +    /**
    1.10 +     * The obfuscation level for the generated minified JavaScript file.
    1.11 +     * @since 0.5
    1.12 +     */
    1.13 +    @Parameter(defaultValue = "FULL")
    1.14 +    private ObfuscationLevel obfuscation;
    1.15 +    
    1.16      @Override
    1.17      public void execute() throws MojoExecutionException, MojoFailureException {
    1.18          URLClassLoader loader;
    1.19 @@ -151,7 +158,7 @@
    1.20              
    1.21                  Writer w = new OutputStreamWriter(os, "UTF-8");
    1.22                  configureMain(loader).
    1.23 -                    obfuscation(ObfuscationLevel.FULL).
    1.24 +                    obfuscation(obfuscation).
    1.25                      generate(w);
    1.26                  w.flush();
    1.27                  os.closeEntry();