Ant buildtools: added base class for Kotlin compiler ant tasks.

As side effect:
 - used cli compiler in both ant tasks.
 - got the ability to use custom args in JS ant task too.
This commit is contained in:
Zalim Bashorov
2014-08-16 19:34:40 +04:00
parent dc97cdb51c
commit d986b0e565
23 changed files with 283 additions and 434 deletions
@@ -168,7 +168,7 @@ public class K2JVMCompiler extends CLICompiler<K2JVMCompilerArguments> {
}
}
public static void putAdvancedOptions(@NotNull CompilerConfiguration configuration, @NotNull K2JVMCompilerArguments arguments) {
private static void putAdvancedOptions(@NotNull CompilerConfiguration configuration, @NotNull K2JVMCompilerArguments arguments) {
configuration.put(JVMConfigurationKeys.DISABLE_CALL_ASSERTIONS, arguments.noCallAssertions);
configuration.put(JVMConfigurationKeys.DISABLE_PARAM_ASSERTIONS, arguments.noParamAssertions);
configuration.put(JVMConfigurationKeys.DISABLE_INLINE, arguments.noInline);