Ant task: do not include runtime by default if destination is a jar

This commit is contained in:
scaventz
2021-01-14 00:04:48 +08:00
committed by Alexander Udalov
parent b0b7f39c75
commit a13eb4c8e6
6 changed files with 78 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<taskdef resource="org/jetbrains/kotlin/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
<target name="build">
<kotlinc src="${test.data}/test.kt" classpath="${test.data}/Kt11995.jar" output="${temp}/test.jar" nowarn="true" />
<kotlinc src="${test.data}/test.kt" classpath="${test.data}/Kt11995.jar" output="${temp}/test.jar" nowarn="true" includeRuntime="true"/>
<exec executable="java">
<arg line="-classpath ${temp}/test.jar foo.TestKt"/>