1.1 --- a/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/Java2JavaScript.java Wed Mar 13 18:14:23 2013 +0100
1.2 +++ b/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/Java2JavaScript.java Tue Mar 19 13:08:44 2013 +0100
1.3 @@ -53,6 +53,11 @@
1.4 @Parameter(defaultValue="${project}")
1.5 private MavenProject prj;
1.6
1.7 + /**
1.8 + * The obfuscation level for the generated JavaScript file.
1.9 + *
1.10 + * @since 0.5
1.11 + */
1.12 @Parameter(defaultValue="NONE")
1.13 private ObfuscationLevel obfuscation;
1.14
2.1 --- a/rt/vm/src/main/java/org/apidesign/vm4brwsr/Bck2Brwsr.java Wed Mar 13 18:14:23 2013 +0100
2.2 +++ b/rt/vm/src/main/java/org/apidesign/vm4brwsr/Bck2Brwsr.java Tue Mar 19 13:08:44 2013 +0100
2.3 @@ -89,6 +89,7 @@
2.4 * @param resources provider of class files to use
2.5 * @param classes additional classes to include in the generated script
2.6 * @throws IOException I/O exception can be thrown when something goes wrong
2.7 + * @since 0.5
2.8 */
2.9 public static void generate(Appendable out, ObfuscationLevel obfuscationLevel, Resources resources, String... classes) throws IOException {
2.10 StringArray arr = StringArray.asList(classes);
2.11 @@ -117,6 +118,7 @@
2.12 * @param loader class loader to load needed classes from
2.13 * @param classes additional classes to include in the generated script
2.14 * @throws IOException I/O exception can be thrown when something goes wrong
2.15 + * @since 0.5
2.16 */
2.17 public static void generate(Appendable out, ObfuscationLevel obfuscationLevel, final ClassLoader loader, String... classes) throws IOException {
2.18 class R implements Resources {
3.1 --- a/rt/vm/src/main/java/org/apidesign/vm4brwsr/ObfuscationLevel.java Wed Mar 13 18:14:23 2013 +0100
3.2 +++ b/rt/vm/src/main/java/org/apidesign/vm4brwsr/ObfuscationLevel.java Tue Mar 19 13:08:44 2013 +0100
3.3 @@ -20,6 +20,8 @@
3.4 /**
3.5 * Defines obfuscation level of produced JavaScript files. Corresponds to the
3.6 * closure compiler compilation level.
3.7 + *
3.8 + * @since 0.5
3.9 */
3.10 public enum ObfuscationLevel {
3.11 NONE,