added run task to launch example kt file

This commit is contained in:
Vasily Levchenko
2016-09-27 15:11:08 +03:00
parent 68ce9cd549
commit ff6b3474d8
@@ -55,3 +55,10 @@ task jars {
print jarName + ":" print jarName + ":"
} }
} }
task run(type: JavaExec) {
main 'org.jetbrains.kotlin.cli.bc.K2NativeKt'
classpath = sourceSets.main.runtimeClasspath.add(files(['build/classes/main']))
args '../../translator/src/test/kotlin/tests/classfields_1/classfields_1.kt'
}