forbid compiling code in packages with names starting with 'kotlin' unless the -Xallow-kotlin-package command line option is specified

This commit is contained in:
Dmitry Jemerov
2016-01-13 19:04:16 +01:00
parent 6b354748ba
commit f3faa10fcc
11 changed files with 51 additions and 2 deletions
@@ -67,6 +67,9 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
@Argument(value = "Xmultifile-facades-open", description = "Compile multifile facade classes as open")
public boolean multifileFacadesOpen;
@Argument(value = "Xallow-kotlin-package", description = "Allow compiling code in package 'kotlin'")
public boolean allowKotlinPackage;
// Paths to output directories for friend modules.
public String[] friendPaths;