Configure Java module path when compiler is invoked in -Xbuild-file mode

#KT-27626 Fixed
This commit is contained in:
Alexander Udalov
2018-10-17 13:08:25 +02:00
parent 1a1b7938fb
commit e3a332c393
7 changed files with 50 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
<modules>
<module name="app" type="java-production" outputDir="$TEMP_DIR$/app">
<sources path="$TESTDATA_DIR$/usage/usage.kt"/>
<javaSourceRoots path="$TESTDATA_DIR$/usage"/>
</module>
</modules>

View File

@@ -0,0 +1,2 @@
warning: the '-d' option with a directory destination is ignored because '-Xbuild-file' is specified
OK

View File

@@ -0,0 +1,3 @@
module usage {
requires kotlin.stdlib;
}

View File

@@ -0,0 +1,3 @@
class Test {
fun test() = KotlinVersion.CURRENT
}