Support default module name in ant task

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