Rename -jdk compiler option to -jdk-home (jdkHome), add jdk path validation.
This commit is contained in:
Vendored
+1
-1
@@ -3,7 +3,7 @@ where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-classpath (-cp) <path> Paths where to find user class files
|
||||
-include-runtime Include Kotlin runtime in to resulting .jar
|
||||
-jdk <path> Path to JDK home to include into classpath, if differs from default %JAVA_HOME%
|
||||
-jdk-home <path> Path to JDK home directory to include into classpath, if differs from default JAVA_HOME
|
||||
-no-jdk Don't include Java runtime into classpath
|
||||
-no-stdlib Don't include Kotlin runtime into classpath
|
||||
-module <path> Path to the module file to compile
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
$TESTDATA_DIR$/simple.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-jdk
|
||||
-jdk-home
|
||||
$TESTDATA_DIR$
|
||||
-no-jdk
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
warning: the '-jdk' option with a path to JDK is ignored because '-no-jdk' is specified
|
||||
warning: the '-jdk-home' option is ignored because '-no-jdk' is specified
|
||||
OK
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-classpath (-cp) <path> Paths where to find user class files
|
||||
-include-runtime Include Kotlin runtime in to resulting .jar
|
||||
-jdk <path> Path to JDK home to include into classpath, if differs from default %JAVA_HOME%
|
||||
-jdk-home <path> Path to JDK home directory to include into classpath, if differs from default JAVA_HOME
|
||||
-no-jdk Don't include Java runtime into classpath
|
||||
-no-stdlib Don't include Kotlin runtime into classpath
|
||||
-module <path> Path to the module file to compile
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
$TESTDATA_DIR$/simple.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-jdk-home
|
||||
$TESTDATA_DIR$
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
error: no class roots are found in the JDK path: compiler/testData/cli/jvm
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user