=pod =head1 EXPORTS =over 4 =cut =pod =item B() Custom options for the GWT "super" devmode. For a list of all options, use: java -classpath $sdk_dir/gwt-dev.jar com.google.gwt.dev.CodeServer =cut sub custom_codeserver_options() { my @opt = (); return @opt; } =pod =item B() Custom options for the GWT compiler. For a list of all options, use: java -classpath $sdk_dir/gwt-dev.jar com.google.gwt.dev.Compiler =cut sub custom_compiler_options() { use votorola::b::Build qw( out_dir ); my $out_dir = out_dir(); my @opt = (); push @opt, '-localWorkers 3'; # more does not shorten compile time (GWT 2.3) if( $out_dir =~ m'^/mnt/.+/v|voff/' ) # public deployment { push @opt, '-logLevel INFO'; # ERROR, WARN, INFO, TRACE, DEBUG, SPAM, ALL push @opt, '-optimize 9'; # 0-9 # push @opt, '-XenableClosureCompiler'; # fails with 'error optimizing:JSC_VAR_ARGUMENTS_SHADOWED_ERROR. Shadowing "arguments" is not allowed' (GWT 2.5) } else # vdev development build { $out_dir =~ m'^/home/mike/' or die; push @opt, '-ea'; # enable assertions push @opt, '-logLevel INFO'; push @opt, '-optimize 0'; push @opt, '-style DETAILED'; # script output OBF[USCATED] | PRETTY | DETAILED # defaults to OBFUSCATED. Apparently has no effect on stylesheet class names, # which remain obfuscated regardless } return @opt; } =pod =item B() Custom options for the GWT compiler. For a list of all options, use: java -classpath $sdk_dir/gwt-dev.jar com.google.gwt.dev.Compiler =cut sub custom_compiler_java_options() { my @opt = (); # push @opt, '-Xmx2048M'; return @opt; } =pod =item B() Custom options for the GWT devmode. For a list of all options, use: java -classpath $sdk_dir/gwt-dev.jar com.google.gwt.dev.DevMode =cut sub custom_devmode_options() { my @opt = (); # push @opt, '-startupUrl \'vdev/xf/#c=DumV&s=G!p!sandbox\''; return @opt; } =pod =item B() Custom Java options for the GWT devmode. =cut sub custom_devmode_java_options() { my @opt = (); push @opt, '-Xms2000m'; push @opt, '-Xmx7000m'; # avoid busy crash (2.5) when (owing to leaks I guess) limit is reached return @opt; } =pod =item B() The installation directory for the GWT SDK, without a trailing '/'. =cut sub SDK_dir() { return '/opt/gwt/' . version(); # return '/home/mike/code/gwt/switch/repo/build/staging/gwt-' . version(); # TEST } =pod =item B The version of the GWT SDK. =cut sub version() { return '2.8.0+mca.1'; } # changing? might also need to change g/web/gwt/svg/lib-gwt-svg.jar =pod =back =cut 1;