Support default module name for withKotlin ant task

This commit is contained in:
Michael Bogdanov
2015-09-08 14:01:09 +03:00
parent 7c16fb8a89
commit a52281f52a
8 changed files with 66 additions and 9 deletions
@@ -0,0 +1,11 @@
package hello
fun main(args: Array<String>) {
val systemClassLoader = ClassLoader.getSystemClassLoader()
val moduleFile = "META-INF/build.kotlin_module"
val resourceAsStream = systemClassLoader.getResourceAsStream(moduleFile)
if (resourceAsStream != null) {
println("Module info '$moduleFile' exists")
}
}